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)); } }
public void setPlayer(MPPlayerController p) { associatedPlayer = p; }
public void RegisterPlayer(MPPlayerController newPlayer) { chatWindowController.addLine("(local)", "New player joined with player ctrl id " + newPlayer.playerControllerId); this.PlayerList.AddLast(newPlayer); if (isServer) ServerStartNewGame(); }
public void OnPongDisconnected(MPPlayerController gone) { Debug.Log("Server received player disconnect"); this.PlayerList.Remove(gone); this.ServerStartNewGame(); }