private void Start() { if (!deactiveListener) { Messenger.AddListener(enableEvent.ToString(), ChangeEnabled); } enabled = false; gameObject.SetActive(false); }
public void OnClick() { Messenger.Broadcast(callEventOnClick.ToString()); }
private void Start() { if (!deactiveListener) { Messenger.AddListener(enableEvent.ToString(), ChangeEnabled); } enabled = false; gameObject.SetActive(false); }
public void OnClick() { Messenger.Broadcast(callEventOnClick.ToString()); }