Beispiel #1
0
 public override void Init(StageEnum.EStageMode mode, List <StageData> data)
 {
     base.Init(mode, data);
     if (mode != StageEnum.EStageMode.ExpeditionMode)
     {
         return;
     }
     Debug.Log("进入远征模式,初始化数据");
     _text.text = GameStaticUtils.GetEnumDescription <StageEnum.EStageMode>((int)mode);
     foreach (StageData t in data)
     {
         Debug.Log(t.Id + " 关卡名: " + t.Name);
     }
 }
        public List <StageData> GetNormalDatas(StageEnum.EStageMode mode)
        {
            switch (mode)
            {
            case StageEnum.EStageMode.NormalMode:
                return(_normaDatas);

            case StageEnum.EStageMode.EliteMode:
                return(new List <StageData>());

            case StageEnum.EStageMode.ExpeditionMode:
                return(new List <StageData>());

            case StageEnum.EStageMode.DayRobberyMode:
                return(new List <StageData>());

            default:
                return(new List <StageData>());
            }
        }
Beispiel #3
0
 public virtual void Init(StageEnum.EStageMode mode, List <StageData> data)
 {
 }
 private void OPenNormalStage(GameObject go, StageEnum.EStageMode mode)
 {
     go.GetComponent <StageBase>().Init(mode, StageManager.Instance.GetNormalDatas(mode));
 }