Ejemplo n.º 1
0
        public LevelLoader(SceneManager sceneManager, AtpRunner.Scene.Scene scene, string levelName) : base()
        {
            PLAYERSTARTX = 0;
            PLAYERSTARTY = 300;

            LevelName    = levelName;
            SceneManager = sceneManager;
            Scene        = scene;
            Initialize();
        }
Ejemplo n.º 2
0
        public MainMenuLevelLoader(SceneManager sceneManager, AtpRunner.Scene.Scene scene, string levelName) : base()
        {
            PLAYERSTARTX = 0;
            PLAYERSTARTY = 300;

            LevelName    = levelName;
            SceneManager = sceneManager;
            Scene        = scene;

            var physics = LoadPhysics();

            Scene.Physics = physics;

            Initialize();
        }