void OnDisable()
 {
     if (LOSEventManager.TryGetInstance() != null)
     {
         LOSEventManager.TryGetInstance().RemoveEventTrigger(this);
     }
 }
Esempio n. 2
0
 void OnDisable()
 {
     if (LOSEventManager.TryGetInstance() != null)
     {
         LOSEventManager.instance.RemoveEventSource(this);
     }
 }
Esempio n. 3
0
        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>();
        }
Esempio n. 6
0
        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);
 }
Esempio n. 9
0
 private static void GenerateInstance()
 {
     LOSEventManager._instance = FindObjectOfType <LOSEventManager>();
 }