void OnDisable() { if (LOSEventManager.TryGetInstance() != null) { LOSEventManager.TryGetInstance().RemoveEventTrigger(this); } }
void OnDisable() { if (LOSEventManager.TryGetInstance() != null) { LOSEventManager.instance.RemoveEventSource(this); } }
void Awake() { _instance = this; _sources = new List <LOSEventSource>(); _triggers = new List <LOSEventTrigger>(); }
void OnEnable() { if (LOSEventManager.TryGetInstance() != null) { LOSEventManager.TryGetInstance().AddEventTrigger(this); } }
void Awake() { _instance = this; _sources = new List<LOSEventSource>(); _triggers = new List<LOSEventTrigger>(); }
private static void GenerateInstance(LOSEventManager reference) { if (LOSEventManager._instance != null) { Destroy(reference); return; } LOSEventManager._instance = reference; }
public void Start() { LOSEventManager.TryGetInstance().AddEventTrigger(this); NotTriggered(); }
void OnEnable() { LOSEventManager.TryGetInstance().AddEventSource(this); }
private static void GenerateInstance() { LOSEventManager._instance = FindObjectOfType <LOSEventManager>(); }