protected virtual void Awake() { _controller = GetComponent <RetroController>(); if (controllerCamera == null) { Debug.LogWarning("Nothing set up for Player View."); } else { roll.currentAngle = controllerCamera.localEulerAngles.z; _controller.OnJumpCallback.AddListener(() => _controller.StepCount = 0); } if (playerView == null) { Debug.LogWarning("Nothing set up for Player View."); } cameraPosition = playerView.position; }
public virtual void OnAwake(RetroController retroController) { this.retroController = retroController; }