Exemplo n.º 1
0
 void Start()
 {
     lookTarget         = GameObject.FindGameObjectWithTag(Helpers.Tags.CameraFollowTarget).transform;
     pivotTarget        = GameObject.FindGameObjectWithTag(Helpers.Tags.CameraPositionPivot).GetComponent <CameraPositionPivotManager>();
     playerStatus       = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).GetComponent <PlayerStatus>();
     playerMovement     = GameObject.FindGameObjectWithTag(Helpers.Tags.Player).GetComponent <PlayerMovementManager>();
     lockOnManager      = playerStatus.GetComponent <LockOnManager>();
     state              = CameraMode.Free;
     transform.position = lookTarget.position + transform.rotation * distanceFromTarget;
 }
Exemplo n.º 2
0
 void Start()
 {
     playerMovement = gameObject.GetComponent <PlayerMovementManager>();
     magicManager   = gameObject.GetComponent <MagicManager>();
     uiManager      = gameObject.GetComponent <UIManager>();
     cameraManager  = Camera.main.GetComponent <CameraManager>();
     cameraPivot    = gameObject.GetComponentInChildren <CameraPositionPivotManager>();
     playerStatus   = gameObject.GetComponent <PlayerStatus>();
     lockOn         = gameObject.GetComponent <LockOnManager>();
     RightTrigger   = AxisState.NotHeld;
     RightDPad      = AxisState.NotHeld;
     LeftDPad       = AxisState.NotHeld;
     UpDPad         = AxisState.NotHeld;
     DownDPad       = AxisState.NotHeld;
     HideCursor();
 }