/// <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); }
private void OnEnable() { Event.RegisterListener(this); }