예제 #1
0
 public static void ResetPlayerPosition()
 {
     if (PlayerObject == null)
     {
         return;
     }
     if (LevelsMgr.CurrentLevel == Level.LobbyLevel)
     {
         PlayerObject.transform.position = _startingPlayerObjectLobbyPosition;
         PlayerObject.transform.rotation = _startingPlayerObjectLobbyRotation;
     }
     else
     {
         PlayerObject.transform.position =
             Level.GetSettledPosition(LevelsMgr.CurrentLevel.GetLevelStartPosition()) + (Vector3.up * 1.5f);
         //PlayerObject.transform.rotation = _startingPlayerObjectLobbyRotation;
     }
 }