// Update is called once per frame void Update() { var movementCommand = _currentlyActiveControlScheme.MovePlayer(gameObject); var rotateCommand = _currentlyActiveControlScheme.RotatePlayer(gameObject, Camera.main.transform); movementCommand.ExecuteMovement(); rotateCommand.ExecuteRotate(); }
// Update is called once per graphics frame void Update() { _currentlyActiveControlScheme.RotatePlayer(gameObject, Camera.main.transform); }