public void Enable(CoordBtn btn) { DisableAll(); selectedBtn = btn; btn.Select(); OnAxisChanged?.Invoke(this, new GizmoAxisEventArgs(selectedBtn.Axis)); }
private void Update() { TimeSpentInGame = (float)Math.Round(Time.time, 2); OnAxisChanged?.Invoke(Input.GetAxis("Horizontal")); if (Input.GetButtonDown("Jump")) { OnJumpPressed?.Invoke(); } PlayerAnimator.SetFloat("movementSpeed", MovementSpeed); PlayerAnimator.SetBool("IsJumping", IsJumping); PlayerAnimator.SetBool("IsHurt", IsHurt); if (Input.GetKeyDown(KeyCode.Escape)) { SceneManager.LoadScene(0); } }
public void ChangeCrosshair() { OnAxisChanged.Invoke(true); }
public void GetAxis() { OnAxisChanged.Invoke(Input.GetAxis(AxisManager.MOUSE_X)); }
public void GetAxis() { OnAxisChanged.Invoke(Input.GetAxisRaw(_axisName)); }
public void GetAxis() { OnAxisChanged.Invoke(Input.GetAxisRaw(AxisManager.HORIZONTAL)); }
public void GetAxis() { OnAxisChanged.Invoke(Input.GetAxisRaw(AxisManager.VERTICAL)); }