Exemplo n.º 1
0
    /// <summary>
    /// 准备或取消准备
    /// </summary>
    /// <param name="msg"></param>
    void SVR_OnReadyOrNot(string msg)
    {
        Proto.OnReadyOrNotInMatchTable data = JsonUtility.FromJson <Proto.OnReadyOrNotInMatchTable>(msg);
        Transform trsm = waitUserParent.Find(data.uid.ToString());

        PlayerInfo.waitPlayers[data.uid].isReady = data.isReady;
        if (trsm)
        {
            trsm.GetComponent <WaitUserPrefab>().ReadyOrNot(data.isReady);
        }
    }
Exemplo n.º 2
0
 /// <summary>
 /// 准备或取消准备
 /// </summary>
 /// <param name="msg"></param>
 void SVR_OnReadyOrNot(string msg)
 {
     Proto.OnReadyOrNotInMatchTable data = JsonUtility.FromJson <Proto.OnReadyOrNotInMatchTable>(msg);
     PlayerInfo.waitPlayers[data.uid].isReady = data.isReady;
 }