コード例 #1
0
 public void HandleInput()
 {
     if (!exitable)
     {
         exitable = true;
         return;
     }
     if (!exitable)
     {
         return;
     }
     if (Input.GetMouseButtonDown(0))
     {
         if (EventSystem.current.IsPointerOverGameObject())
         {
             return;
         }
         TransitionToNoSelection();
     }
     characterState.HandleInput();
 }
コード例 #2
0
 void Update()
 {
     currentState.HandleInput();
     currentState.UpdateExecute();
 }