Exemple #1
0
 public static LTHeroBattleLogic GetInstance()
 {
     if (_instance == null)
     {
         _instance = LTHotfixManager.GetManager <LTHeroBattleLogic>();
     }
     return(_instance);
 }
Exemple #2
0
        public override void Start()
        {
            base.Start();
            string battleState;

            if (DataLookupsCache.Instance.SearchDataByID <string>("clashHeroBattleStatus.isInClash", out battleState) && battleState == "select")
            {
                LTHeroBattleLogic.GetInstance().PostGetMatchBaseInfo(delegate(bool isSuccessful)
                {
                    if (isSuccessful)
                    {
                        EB.Debug.LogError("Open LTHeroBattleMenu");
                        GlobalMenuManager.Instance.Open("LTHeroBattleMenu", true, true);
                    }
                    else
                    {
                        Debug.LogError("PostGetMatchBaseInfo Error");
                    }
                });
            }
        }