コード例 #1
0
    /*
     * 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);
    }
コード例 #2
0
    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);
    }
コード例 #3
0
    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 ();
    }