Пример #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);
        }
Пример #2
0
 private void OnEnable()
 {
     Event.RegisterListener(this);
 }