private void OnTriggerEnter(Collider other) { if (other.tag == "Fall") { mcc.Jump(); } }
private void ControllerBike() { /* * if (!gm.isGameStart) * return; */ mcc.accelerate = accelerateInput.isDown; mcc.brake = breakInput.isDown; mcc.left = rollLeftInput.isDown; mcc.right = rollRightInput.isDown; if (accelerateInput.isTap) { BoostGear(); accelerateInput.ReTapPad(); } if (jumpInput.isDown) { mcc.Jump(); } }