Beispiel #1
0
        public void InitRequirement(UnityAction action, TaskRequirementType requirementType, TaskRecordType recordType, int target)//, int current, int highest)
        {
            AchieveAction   = action;
            RequirementType = requirementType;
            RecordType      = recordType;
            TargetValue     = target;

            InitTaskListener(ARTask.GetRequirementProperty(RequirementType));
        }
        public void InitTask()
        {
            //----------------------------加入监听任务-------------------------------
            int        taskID = int.Parse(EntityMgr.PlayerPrefsEntityIns.TaskContains);
            ConfigData data   = ConfigMgr.Instance.GetConfigDataByID(taskID);

            ARTask test = new ARTask();

            test.InitTask(data);
        }
        public void GetNextTask(int nextId)
        {
            PlayerLevelTaskLineData data = PlayerLevelTaskLineConfig.Instance.GetDataByID(nextId);

            if (data != null)
            {
                ARTask test = new ARTask();
                test.InitTask(data);
                EntityMgr.PlayerPrefsEntityIns.TaskContains = nextId.ToString();
            }
        }