private void FixedUpdate() { if (PlayerControll != null) { if (Input.GetKey(KeyCode.D) || Input.GetMouseButtonDown(0)) { PlayerControll.MoveRight(); } if (Input.GetKey(KeyCode.A)) { PlayerControll.MoveLeft(); } if (Input.GetKey(KeyCode.Space)) { PlayerControll.Jump(); } } }