// // OnConnectedToServer // void OnConnectedToServer() { gameControllerBahviour = gameController.GetComponent<GameControllerBahviour>(); gameControllerBahviour.JoinTeamDeathMatch(); networkView.RPC( "CreateNewPlayerOnServer", RPCMode.Server, Network.player ); }
// // OnServerInitialized // void OnServerInitialized() { gameControllerBahviour = gameController.GetComponent<GameControllerBahviour>(); gameControllerBahviour.StartTeamDeathMatch( 10, "fs", "fsaf", 10000, 20, 10, "asfafds", true ); CreateNewPlayerOnServer( Network.player ); }