Esempio n. 1
0
 public void PlayerGoalHit(MPPlayerController p)
 {
     p.score -= 1;
     if (isServer)
     {
         this.ball.GetComponent<MPBallController>().Reset(new Vector3(0f,0f,0f), Quaternion.Euler(0f, Random.Range(0f, 360f), 0f));
     }
 }
Esempio n. 2
0
 public void setPlayer(MPPlayerController p)
 {
     associatedPlayer = p;
 }
Esempio n. 3
0
 public void RegisterPlayer(MPPlayerController newPlayer)
 {
     chatWindowController.addLine("(local)", "New player joined with player ctrl id " + newPlayer.playerControllerId);
     this.PlayerList.AddLast(newPlayer);
     if (isServer) ServerStartNewGame();
 }
Esempio n. 4
0
 public void OnPongDisconnected(MPPlayerController gone)
 {
     Debug.Log("Server received player disconnect");
     this.PlayerList.Remove(gone);
     this.ServerStartNewGame();
 }