// Update is called once per frame void Update() { if (Currentship != null) { SpeedShip.text = "Speed : " + Currentship.GetSpeed(); VelocityShip.text = "Velocity : " + Currentship.GetVelocity().magnitude; } if (Input.GetKeyDown(KeyCode.P)) { TurnOnOffDebugScreen(!DebugCanvas.enabled); } if (Input.GetKeyDown(KeyCode.X)) { Debug.Break(); } }