예제 #1
0
 public void ClickOnRoom(int index, int buttonIndex, int map, Vector3 RoomPos)
 {
     if (clickCD >= 0)
     {
         return;
     }
     clickCD = 0.3f;
     if (buttonIndex == 1)
     {
         pathMNG.MovePlayer(index, map);
         weaponSCR.UnselectWeapon();
     }
     if (buttonIndex == 0)
     {
         weaponSCR.UseWeapon(index, map, RoomPos);
     }
 }