/* * public void OnLobbyClientExit(){ * print ("OnLobbyClientExit"); * } * public void OnLobbyClientDisconnect(NetworkConnection conn){ * print ("OnLobbyClientDisconnect"); * } * * public void OnLobbyServerConnect(NetworkConnection conn){ * print ("OnLobbyServerConnect"); * } */ public void OnPlayerExit(int _idx) { print("OnPlayerExit"); ChampSelectPlayer player = lobbySlots [_idx].GetComponent <ChampSelectPlayer> (); player.Cmdchange_fac(Types.Faction.OTHER, _idx); }
public void change_team_BLUE(int _idx) { ChampSelectPlayer player = lobbySlots [_idx].GetComponent <ChampSelectPlayer> (); if (!player.isLocalPlayer) { return; } player.Cmdchange_fac(Types.Faction.BLUE, _idx); //OnPlayerChangeFaction (_idx); }
public void OnClickQuit(int _idx) { ChampSelectPlayer player = lobbySlots [_idx].GetComponent <ChampSelectPlayer> (); if (!player.isLocalPlayer) { return; } player.Cmdchange_fac(Types.Faction.OTHER, _idx); //StopClient (); //StopHost (); //openNewGamePanel (); }