void FinishMoweInput() { if (Input.GetKeyDown(KeyCode.F)) { MechanicMowerEvents.BroadcastOnMechanicMowerFinished(); } }
void StartMoweInput() { if (Input.GetKeyDown(KeyCode.E)) { MechanicMowerEvents.BroadcastOnMechanicMowerStarted(); } }
void RunFixedUpdateEvents() { if (mowerBehaviour.IsWorking) { MechanicMowerEvents.BroadcastOnCustomFixedUpdate(); } }
void UpdateMowerMovementInput() { // horizontalInput = Input.GetAxis("Horizontal"); // verticalInput = Input.GetAxis("Vertical"); horizontalInput = Input.GetAxisRaw("Horizontal"); verticalInput = Input.GetAxisRaw("Vertical"); var normalizedInputVector = new Vector3(horizontalInput, verticalInput, 0f).normalized; MechanicMowerEvents.BroadcastOnMovementUpdate(normalizedInputVector); }
void LateUpdate() { MechanicMowerEvents.BroadcastOnCustomLateUpdate(); }