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