public void SetFPLocation() { currentStageZone.Enable(); previousStageZone = currentStageZone; currentStageZone = null; stack.Clear(); }
public StackInfo MakeStepUp() { //2 варианта StackInfo stackInfo; if (stack.Count == 0) { stackInfo = new StackInfo(currentStageZone.GetParent(), currentStageZone.GetParent().GetDefaultCamParams()); } else { previousStageZone = currentStageZone; previousStageZone.Enable(); stackInfo = stack.Pop(); currentStageZone = stackInfo.stageZone; } return(stackInfo); }