示例#1
0
 public void ConsumeStep(int step = 1)
 {
     curMissionData.MaxSteps -= step;
     //stepChangeCallback?.Invoke(curMissionData.MaxSteps / (float)missionData.MaxSteps);
     stepChangeCallback.Invoke(curMissionData.MaxSteps);
 }
示例#2
0
 public void RegisterStepChanageDelegate(StepChangeDelegate cb)
 {
     stepChangeCallback = cb;
     stepChangeCallback.Invoke(curMissionData.MaxSteps);
 }