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