Beispiel #1
0
        public void LoadTxt(StreamReader sr)
        {
            do
            {
                var smallRank = TxtManager.LoadData(sr) as AbstractSmallRank;
                //throw new Exception(sr.ReadLine());
                if (smallRank == null)
                {
//                    Debug.LogWarning("trigger is null");
                    break;
                }

                this.smallRanks.Add(smallRank);
            } while (true);
        }
Beispiel #2
0
        public void LoadTxt(StreamReader sr)
        {
//            Debug.Log(this.name + " Main");
            do
            {
                var trigger = TxtManager.LoadData(sr) as AbstractSkillTrigger;
                //throw new Exception(sr.ReadLine());
                if (trigger == null)
                {
//                    Debug.LogWarning("trigger is null");
                    break;
                }

                this.AddTrigger(trigger);
            } while (true);
//            Debug.Log(this.name+" end Main");
        }