Exemple #1
0
 public void Initialize()
 {
     stateList = new StateList();
     scene = new EditorScene();
 }
Exemple #2
0
        public void LevelCreate()
        {
            //SceneStop();
            SetTool(null);
            Renderer.RemoveLayer(Hud);
            Renderer.RemoveLayer(Level);
            Hud = new Scene();
            Level = new EditorScene(Renderer);
            Renderer.AddLayer(Level);
            Renderer.AddLayer(Hud);

            selection = new Selection(Level);
            StateList = new StateList();

            CamControl = new ControllerCamera(this, Input, Level);
            Transform2.SetSize(CamControl, 10);
            Hud.SetActiveCamera(CamControl);
            Level.ActiveCamera = CamControl;

            LevelCreated(this, null);
            LevelChanged(this, null);
            TimeChanged(this, Level.Time);
        }