Exemple #1
0
 public void dispose()
 {
     _conditionMeetHelper.dispose();
     _conditionMeetHelper = null;
     _taskCacheData       = null;
     _stepController      = null;
 }
Exemple #2
0
 public void Init()
 {
     _curTaskId      = 0;
     _taskCacheData  = new MTBTaskCacheData();
     _stepController = new MTBTaskStepController();
     if (_taskCacheData.curStep != 0 && _taskCacheData.curConDuctTaskData != null)
     {
         _curTaskId = _taskCacheData.curConDuctTaskData.id;
         _stepController.curStepId = _taskCacheData.curStep;
     }
     _conditionMeetHelper = gameObject.AddComponent <MTBTaskCondtionMeetHelper>();
     _conditionMeetHelper.updateCondition(_taskCacheData.canConductTaskList);
     checkTaskUI();
 }