Beispiel #1
0
        void Awake()
        {
            //InitSimulationCard();

            instance        = this;
            battleProxy     = ApplicationFacade.Instance.RetrieveProxy(Proxys.BATTLE_PROXY) as BattleProxy;
            gameMgrProxy    = ApplicationFacade.Instance.RetrieveProxy(Proxys.GAMEMGR_PROXY) as GameMgrProxy;
            playerInfoProxy = ApplicationFacade.Instance.RetrieveProxy(Proxys.PLAYERINFO) as PlayerInfoProxy;
            Application.logMessageReceived += HandleLog;
        }
Beispiel #2
0
 void Awake()
 {
     instance        = this;
     battleProxy     = ApplicationFacade.Instance.RetrieveProxy(Proxys.BATTLE_PROXY) as BattleProxy;
     gameMgrProxy    = ApplicationFacade.Instance.RetrieveProxy(Proxys.GAMEMGR_PROXY) as GameMgrProxy;
     playerInfoProxy = ApplicationFacade.Instance.RetrieveProxy(Proxys.PLAYER_PROXY) as PlayerInfoProxy;
     Application.logMessageReceived += HandleLog;
     for (int i = 0; i < GlobalData.CardWare.Length; i++)
     {
         GlobalData.Test127Queue.Enqueue(GlobalData.CardWare[i]);
     }
     for (int i = 0; i < defaultCardIndex.Length; i++)
     {
         defaultCardIndex[i] = GlobalData.Test127Queue.Dequeue();
     }
 }