Exemplo n.º 1
0
 private void FollowPlayer()
 {
     if (followingPlayer)
     {
         if (camPosition != playerMovementController.GetTargetPosition())
         {
             MoveCameraToCoordinates(playerMovementController.GetTargetPosition());
         }
         else
         {
             followingPlayer = false;
         }
     }
 }
Exemplo n.º 2
0
 private void SetAxisDirection()
 {
     xDirection = GetAxisDirection(characterMovementController.GetTargetPosition().x, character.GetMyPosition().x);
     yDirection = GetAxisDirection(characterMovementController.GetTargetPosition().y, character.GetMyPosition().y);
 }