예제 #1
0
 public void PopScene()
 {
     if (loaded_scenes.Count > 1)
     {
         loaded_scenes.Pop();
         current_World = loaded_scenes.Peek();
     }
 }
예제 #2
0
 public void PushWorld(WorldScene child)
 {
     loaded_scenes.Clear();
     PushScene(child);
     player = new EntityObject(player.Position, player.FileName, player.Direction, player.Rotation, player.Collidable);
     Debug.WriteLine("PushWorld : " + child.Name);
     child.AddEntity(player);
 }
예제 #3
0
 public void PushScene(WorldScene child)
 {
     loaded_scenes.Push(child);
     current_World = child;
 }