Example #1
0
 public Player(ControllerIndex _number)
 {
     justUnpaused = false;
     isPaused = false;
     teamNotSet = true;
     number = _number;
     if (_number != ControllerIndex.Keyboard)
     {
         keyboardControlled = false;
     }
     else
     {
         keyboardControlled = true;
     }
     playerCamera = null;
     currentState = new MenuPlayerState(this);
     playerHUD = new PlayerHUD(this);
     playerHUDActive = false;
     objectivesDrawActive = true;
     pausedState = new PausedPlayerState(this);
 }
Example #2
0
 public void setPlayerCamera(Scene scene)
 {
     playerCamera = new PlayerCamera(scene,Vector3.Zero, new Quaternion(), Space394Game.GameInstance.AspectRatio);
     PlayerCamera.playerInit(new Vector3(0.0f, 0.0f, 0.5f), this);
 }