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