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