Example #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));
     }
 }
Example #2
0
 public void setPlayer(MPPlayerController p)
 {
     associatedPlayer = p;
 }
Example #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();
 }
Example #4
0
 public void OnPongDisconnected(MPPlayerController gone)
 {
     Debug.Log("Server received player disconnect");
     this.PlayerList.Remove(gone);
     this.ServerStartNewGame();
 }