Example #1
0
 public void SetFPLocation()
 {
     currentStageZone.Enable();
     previousStageZone = currentStageZone;
     currentStageZone  = null;
     stack.Clear();
 }
Example #2
0
    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);
    }