public void PopScene() { if (loaded_scenes.Count > 1) { loaded_scenes.Pop(); current_World = loaded_scenes.Peek(); } }
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); }
public void PushScene(WorldScene child) { loaded_scenes.Push(child); current_World = child; }