public void OnSave() { Rocks = new List <Rock>(); foreach (Entity e in EntityManager.Entities) { if (e is PlayerShip) { Player = (PlayerShip)e; } else { Rocks.Add((Rock)e); } } }
public void OnSave() { Rocks = new List<Rock>(); foreach (Entity e in EntityManager.Entities) { if (e is PlayerShip) Player = (PlayerShip)e; else Rocks.Add((Rock)e); } }