示例#1
0
 public void Add(BlackHole item)
 {
     Debug.Assert(item != null, "item is null.");
     BlackHoleList.Add(item);
     EntityList.Add(item);
     GravityPointList.Add(item);
 }
示例#2
0
        /* Resets all entity lists to empty */
        private void ClearLists()
        {
            PlayerList.Clear();
            PlanetList.Clear();
            ProjectileList.Clear();
            BlackHoleList.Clear();
            BloodParticleList.Clear();

            EntityList.Clear();
            PhysicalObjectList.Clear();
            GravityPointList.Clear();
        }