Пример #1
0
 // 更新時に呼ばれる
 void Update()
 {
     // ボタンの状態表示
     print("ButtonA Pressed: " + ButtonA.IsPressed());
     print("ButtonA Down: " + ButtonA.IsDown());
     print("ButtonA Up: " + ButtonA.IsUp());
 }
Пример #2
0
 void FixedUpdate()
 {
     if (Manager.status == Manager.StatusMap.overed)
     {
         return;
     }
     octopus.Run(Input.GetAxis("Horizontal") + joystick.Horizontal);
     octopus.Jump(Input.GetKeyDown(KeyCode.Space) | jumpButton.IsDown());
 }
Пример #3
0
 void listenPickupButton()
 {
     if (ReferenceEquals(pickupButton, null) == false && pickupButton.IsDown())
     {
         if (waitingMonkey > 0)
         {
             appearMonkey();
             waitingMonkey--;
             waitingMonkeyText.text = "×" + waitingMonkey;
         }
     }
 }