コード例 #1
0
    void OnMsgOutGame(MsgBase msgBase)
    {
        MsgOutGame msg = (MsgOutGame)msgBase;

        if (msg.playerId == playerId)
        {
            return;
        }
        if (players != null && players.ContainsKey(msg.playerId))
        {
            GameObject pl = players[msg.playerId];
            Destroy(pl);
            players.Remove(msg.playerId);
        }
    }
コード例 #2
0
    void OnApplicationQuit()
    {
        MsgOutGame msg = new MsgOutGame();

        NetManager.Send(msg);
    }