Пример #1
0
        public virtual void OnEnterRoom()
        {
            Log.Debug("Player OnEnterRoom name={0}", name);
            if (headUI != null)
            {
                headUI.Reset();
                headUI = null;
            }

            pos.Value   = 255;
            uiPos.Value = 255;
        }
Пример #2
0
        public void Clear()
        {
            Log.Debug("Player Clear name={0}", name);
            if (stateController != null)
            {
                GameFrameworkEntry.GetModule <IFsmManager>().DestroyFsm(stateController.fsm);
                stateController = null;
            }

            if (headUI != null)
            {
                headUI.Reset();
                headUI = null;
            }
            id.Dispose();
            pos.Dispose();
            clubId.Dispose();
            if (this is PlayerOther)
            {
                RoomManager.Instance.rData.roomPlayers.Remove(this as PlayerOther);
            }

            ClearCards();
        }