Esempio n. 1
0
        protected void LoadStageContent(Stage stage)
        {
            ///////////////////////////
            //Set the base speed for 
            //hookpoints
            ///////////////////////////
            hookpointmanager.hookpointspeed = stage.BaseSpeed;
            ///////////////////////////////////
            //Add the hookpoints for the stage
            //////////////////////////////////
            foreach (HookPoint hp in stage.HookPoints)
            {
                AddHookPoint(hp);
            }
            //////////////////////////////////
            //Add the obstacles for the stage
            //////////////////////////////////
            if (stage.HasObstacles())
            {
                foreach (Obstacle o in stage.Obstacles)
                {
                    AddObstacle(o);
                }
            }
            //Check if were not on first stage
            //////////////////////////////////
            if (!StageManager.IsFirstStage())
            {
                //////////////////////////////////
                //Kick the first point off 
                //////////////////////////////////
                hookpointmanager.SetHookPointTrigger();
            }

            hookpointmanager.InitNextStage(stage);
            
        }
Esempio n. 2
0
 public void InitNextStage(Stage stage)
 {
     ObstacleManager.InitNextStage(stage);
     //StagePointsToReach = pointstoreach;
 }
Esempio n. 3
0
 public void InitNextStage(Stage stage)
 {
     
 }