Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
UIHighlightObject.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4public class UIHighlightObject : MonoBehaviour
5{
6 public Func<bool> ShouldDestroy;
7
8 public Action OnUpdate;
9
10 public Transform trans;
11
12 public CanvasGroup cg;
13
14 private void Update()
15 {
16 if (ShouldDestroy != null && ShouldDestroy())
17 {
18 UnityEngine.Object.DestroyImmediate(base.gameObject);
19 }
20 else
21 {
22 OnUpdate();
23 }
24 }
25}
Func< bool > ShouldDestroy