Ejemplo n.º 1
0
        void OnReady(Player player, CBReady msg)
        {
            if (m_state != State.WaitReady)
            {
                return;
            }

            player.SetState(Player.State.Ready);

            CBReadySync sync = new CBReadySync();

            sync.FromID = player.id;
            SendToAll(sync);

            Debug.Log("{0}\t已准备", player.user.name);
        }
Ejemplo n.º 2
0
 void OnReadySync(CBReadySync msg)
 {
     room.GetPlayer(msg.FromID).SetReady();
     SendEvent(EventDef.SOS.Ready, msg.FromID);
 }