void Awake()
 {
     this.m_Parent = GameManager.Instance.transform;
     this.m_View   = this.gameObject.AddComponent <PrepareView>();
     this.m_Model  = GameManager.GetModel <PrepareModel>();
     NetManager.ListenerMsg(ProtoDefine.StartGame, StartGameCallBack);
 }
Beispiel #2
0
 void Awake()
 {
     this.m_Parent       = GameManager.Instance.transform;
     this.m_View         = this.gameObject.AddComponent <GameRoomView>();
     this.m_Model        = GameManager.GetModel <GameRoomModel>();
     this.m_PrepareModel = GameManager.GetModel <PrepareModel>();
     NetManager.ListenerMsg(ProtoDefine.HitChess, HitChessCallBack);
     NetManager.ListenerMsg(ProtoDefine.WinGame, WinGameCallBack);
 }