private void FixedUpdate() { if (Input.GetKeyDown(KeyCode.M)) { // Taking care of the previous scene if (!(Levelmanager is MenuManager)) { UIOnLeaveScene(); } // For new scene requirements LoadSceneAsync(3, 4); Camerahandler.SetViewPoint(CameraHandler.FocusPoint.End); Camerahandler.Play(); Boat.SetState(boat.BoatState.LeaveScene); } Camerahandler.ClassUpdate(); }
void FixedUpdate() { Camerahandler.ClassUpdate(); }