Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public virtual void OnAwake(RetroController retroController)
 {
     this.retroController = retroController;
 }