Esempio n. 1
0
        /// <summary>
        ///     Activates the reactor.
        /// </summary>
        public void ActivateReactor(GameObject gameObject)
        {
            GameObject = gameObject;

            if (Event == null)
            {
                Debug.LogWarning($"[Game Event Reactor] No event supplied for reactor at : \n{gameObject.transform.GetPath()}");

                return;
            }

            Event.RegisterListener(this);
        }
Esempio n. 2
0
 private void OnEnable()
 {
     Event.RegisterListener(this);
 }