Exemplo n.º 1
0
 public GuideTimeCtrlTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     //读取数据
     timeTask = ConfigReader.GetTimeCtrlTaskInfo(task);
     if (timeTask == null)
     {
         Debug.LogError("GuideTimeCtrlTask 找不到任務 Id" + task);
     }
 }
Exemplo n.º 2
0
 public GuideVoiceTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     //读取数据
     voiceTask = ConfigReader.GetVoiceTaskInfo(task);
     if (voiceTask == null)
     {
         Debug.LogError("GuideVoiceTask = " + task + "id 不存在");
     }
 }
        //CAbsorbTask absorbTask = null;

        public GuideScreenClickTask(int task, GuideTaskType type, GameObject mParent)
            : base(task, type, mParent)
        {
            //读取数据
            //absorbTask = ConfigReader.GetAbsorbTaskInfo(task);
            //if (absorbTask == null)
            //{
            //    Debug.LogError("GuideAbsorbTask 找不到任務 Id" + task);
            //}
        }
Exemplo n.º 4
0
 public GuideKillTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     //读取数据
     killTask = ConfigReader.GetKillTaskInfo(task);
     if (killTask == null)
     {
         //this.FinishTask();
         Debug.LogError("GuideKillTask 找不到任務 Id" + task);
     }
 }
Exemplo n.º 5
0
 public GuideObstructTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     //读取数据
     player  = PlayerManager.Instance.LocalPlayer;
     obsTask = ConfigReader.GetObstructTaskInfo(task);
     if (obsTask == null)
     {
         Debug.LogError("GuideObstructTask 找不到任務 Id" + task);
     }
 }
Exemplo n.º 6
0
        public GuideFlashTask(int task, GuideTaskType type, GameObject mParent)
            : base(task, type, mParent)
        {
            //读取数据
            flashTask = ConfigReader.GetFlashTaskInfo(task);
            if (flashTask == null)
            {
                Debug.LogError("GuideFlashTask 任务id不存在" + task);
            }
            Transform btnParent = null;

            switch (flashTask.PathType)
            {
            case UIPathType.UIGuideType:
                if (UINewsGuide.Instance != null)
                {
                    btnParent = UINewsGuide.Instance.transform;
                }
                break;

            case UIPathType.UIPlayType:
//                     if (UIPlay.Instance != null)
//                     {
//                         btnParent = UIPlay.Instance.transform;
//                     }
                break;
            }
            if (btnParent == null)
            {
                Debug.LogError("GuideFlashTask = " + task + "挂点不存在");
            }
            if (!string.IsNullOrEmpty(flashTask.UiPath))
            {
                objFlash = btnParent.FindChild(flashTask.UiPath).gameObject;
            }
            else
            {
                //objFlash = GameObject.Instantiate(Resources.Load(flashTask.PrefabPath)) as GameObject;
                ResourceUnit objFlashUnit = ResourcesManager.Instance.loadImmediate(flashTask.PrefabPath, ResourceType.PREFAB);
                objFlash = GameObject.Instantiate(objFlashUnit.Asset) as GameObject;
            }
            if (string.IsNullOrEmpty(flashTask.UiPath))
            {
                objFlash.transform.parent = btnParent;
            }
            objFlash.transform.localPosition = flashTask.StartPos;
            objFlash.transform.localScale    = Vector3.one;
            orignalActive = objFlash.activeInHierarchy;
            orignalPos    = objFlash.transform.localPosition;
            objFlash.gameObject.SetActive(true);
        }
        /// <summary>
        /// 完成子任务
        /// </summary>
        /// <param name="taskId"></param>
        public void OnFinishChildTask(GuideTaskType type, int taskId)
        {
            if (!ConfigReader.GuideTaskMgrInfoDict.TryGetValue(NowTaskId, out GuideMgr))
            {
                return;
            }
            switch (GuideMgr.TaskEndType)
            {
            case GuideDate.TaskCheckType.AllMeetCheck: AllGuideChildTaskCheck(taskId); break;

            case GuideDate.TaskCheckType.AnyMeetCheck: AnyGuideChildTaskCheck(taskId); break;

            case GuideDate.TaskCheckType.PartMeetCheck: PartGuideChildTaskCheck(taskId); break;
            }
        }
Exemplo n.º 8
0
        public GuideShowObjTask(int task, GuideTaskType type, GameObject mParent)
            : base(task, type, mParent)
        {
            //读取数据
            showTask = ConfigReader.GetObjShowTaskInfo(task);
            if (showTask == null)
            {
                Debug.LogError("GuideShowObjTask 找不到任務 Id" + task);
            }
            Transform btnParent = null;

            switch (showTask.PathType)
            {
            case UIPathType.UIGuideType:
                if (UINewsGuide.Instance != null)
                {
                    btnParent = UINewsGuide.Instance.transform;
                }
                break;

            case UIPathType.UIPlayType:
//                     if (UIPlay.Instance != null)
//                     {
//                         btnParent = UIPlay.Instance.transform;
//                     }
                break;
            }
            if (btnParent == null)
            {
                Debug.LogError("GuideShowObjTask = " + task + "挂点不存在");
            }
            objShow = btnParent.FindChild(showTask.Path).gameObject;
            if (objShow == null)
            {
                Debug.LogError("GuideShowObjTask 找不到物體 Id" + task);
            }
        }
Exemplo n.º 9
0
 public AdGuideCheckSkillInfoTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
 //const int bTipsId = 1001;
 public GuideCameraTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     CameraMoveNextId = task;
     //CGLCtrl_GameLogic.Instance.EmsgToss_AskStopMove();
 }
Exemplo n.º 11
0
 public GuideTaskBase(int id, GuideTaskType type, GameObject mParent)
 {
     mTaskId  = id;
     taskType = type;
     mRoot    = mParent;
 }
 public GuideScreenClickTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// 当完成引导任务时,卡片要刷新位置
 /// </summary>
 /// <param name="type"></param>
 /// <param name="taskId"></param>
 private void OnFinishGuideTask(GuideTaskType type, int taskId)
 {
     FreshGridPosition();
 }
Exemplo n.º 14
0
 public GuidePathTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 15
0
 public AdGuideGetCpTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 16
0
 public AdGuidePlayerRebornTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
 public GuideEquipRuneTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 18
0
 public AdGuideAbsorbSuccessTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
 public AdGuidePromptToAbsorbTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 20
0
 /// <summary>
 /// 完成子任务
 /// </summary>
 /// <param name="taskId"></param>
 private void OnFinishChildTask(GuideTaskType type, int taskId)
 {
     GamePlayGuideModel.Instance.OnFinishChildTask(type, taskId);
 }
Exemplo n.º 21
0
        /// <summary>
        /// 或许模块要执行的Id
        /// </summary>
        private void ExecuteNextGuide()
        {
            int taskId = GamePlayGuideModel.Instance.NowTaskId;

            if (!ConfigReader.GuideTaskMgrInfoDict.ContainsKey(taskId))
            {
                return;
            }
            List <int> idList   = ConfigReader.GuideTaskMgrInfoDict[taskId].ChildTaskId;
            List <int> TypeList = ConfigReader.GuideTaskMgrInfoDict[taskId].ChildTaskType;

            for (int tp = 0; tp < TypeList.Count; tp++)
            {
                GuideTaskBase task = null;
                GuideTaskType type = (GuideTaskType)TypeList[tp];
                switch (type)
                {
                case GuideTaskType.ClickButtonTask:
                    task = new GuideClickButtonTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.PathTask:
                    task = new GuidePathTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.TimeCtrlTask:
                    task = new GuideTimeCtrlTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.MoveCameraTask:
                    task = new GuideCameraTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.TipTask:
                    task = new GuideTipTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.PopTipTask:
                    task = new GuidePopTipTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.ObstructTask:
                    task = new GuideObstructTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.VoiceTask:
                    task = new GuideVoiceTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.ObjFlashTask:
                    task = new GuideFlashTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.ObjShowTask:
                    task = new GuideShowObjTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.AbsorbTask:
                    task = new GuideAbsorbTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.SenderSoldierTask:
                    task = new GuideSendNpcTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.SenderHeroTask:
                    task = new GuideSendHeroTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.KillTask:
                    task = new GuideKillTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.RewardTipTask:
                    task = new GuideRewardTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.ForceClickTask:
                    task = new GuideForceClick(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.ScreenClickTask:
                    task = new GuideScreenClickTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.KillHeroTask:
                    task = new GuideKillHeroTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.GetHeroTask:
                    task = new GuideGetHeroTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.GetGuideToAdGuide:
                    task = new GuideToAdGuideTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.LevelToBuyRunes:
                    task = new GuideLevelToBuyRuneTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.GetRuneTask:
                    task = new GuideGetRuneTask(idList[tp], type, mRoot.gameObject);
                    break;

                case GuideTaskType.EquipRuneTask:
                    task = new GuideEquipRuneTask(idList[tp], type, mRoot.gameObject);
                    break;
                }
                task.EnterTask();
                GamePlayGuideModel.Instance.GuideTaskExecuteList.Add(task);
            }
        }
 public AdGuideEnterAltarTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
 public AdGuideFullAngryTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 24
0
 public GuideSendHeroTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 25
0
 public GuideClickButtonTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
     //读取数据
 }
Exemplo n.º 26
0
 public GuideForceClick(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
 public GuideLevelToBuyRuneTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 28
0
 public AdGuideBeAttackByBuildTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }
Exemplo n.º 29
0
 public AdGuideBornStrongSoldierTask(int task, GuideTaskType type, GameObject mParent)
     : base(task, type, mParent)
 {
 }