예제 #1
0
파일: SceneStack.cs 프로젝트: zfogg/Bounce
        public void Push(Scene scene)
        {
            if (Count > 0)
                Top.WhenPushedOnto();

            scene.Initialize();
            scenes.AddFirst(scene);

            chartSceneDepths();
        }
예제 #2
0
파일: Background.cs 프로젝트: zfogg/Bounce
 public Background(Scene scene, Vector2 position, string textureName)
     : base(scene)
 {
     this.position = position;
     backgroundTexture = BounceGame.ContentManager.Load<Texture2D>(textureName);
 }