protected virtual void Init() { if (!_isInit) { _EventListener = GetComponent <InteractEventListener>(); _EventListener.OnEnter += InputEnter; _EventListener.OnHover += InputHover; _EventListener.OnExit += InputExit; _EventListener.OnClick += InputClick; } }
protected virtual void Init() { if (!_isInit) { _EventListener = GetComponent<InteractEventListener>(); _EventListener.OnEnter += InputEnter; _EventListener.OnHover += InputHover; _EventListener.OnExit += InputExit; _EventListener.OnClick += InputClick; } }