コード例 #1
0
 public virtual void Focus()
 {
     if (hasFocus)
     {
         return;
     }
     hasFocus = true;
     animatorMonitor.SetTrigger(focusAnimationTrigger, null, false);
     UITools.EnableInteractivity(gameObject);
     onFocus.Invoke();
 }
コード例 #2
0
 protected virtual void FocusNow()
 {
     panelState = PanelState.Open;
     animatorMonitor.SetTrigger(focusAnimationTrigger, null, false);
     UITools.EnableInteractivity(gameObject);
     if (hasFocus)
     {
         return;
     }
     if (string.IsNullOrEmpty(focusAnimationTrigger))
     {
         OnFocused();
     }
     else
     {
         animatorMonitor.SetTrigger(focusAnimationTrigger, OnFocused, true);
     }
     onFocus.Invoke();
 }