예제 #1
0
 void MouseInput()
 {
     if (Input.GetMouseButtonDown(0))
     {
         playerFSM.Shot();
     }
     else if (Input.GetMouseButtonUp(0))
     {
         playerFSM.ShotStop();
     }
     if (Input.GetMouseButtonDown(1))
     {
         playerFSM.Grenade();
     }
 }