private void Awake() { _receiver = GetComponent <UIEventReceiver>(); _component.enabled = _receiver.Visible; _receiver.OnEnable += ReceiverOnOnEnable; _receiver.OnDisable += ReceiverOnOnDisable; }
private void Awake() { _receiver = GetComponent <UIEventReceiver>(); _receiver.OnEnable += ReceiverOnEnable; _receiver.OnDisable += ReceiverOnDisable; if (_single == false) { StartCoroutine(OnUpdate()); _single = true; } }