22 lines
541 B
C#
22 lines
541 B
C#
using System.Collections.Generic;
|
|
|
|
public partial class Nebula : GameObject
|
|
{
|
|
public List<GameObject> GameObjects { get; private set; }
|
|
|
|
public Nebula(string name, CoordinateVector position, CoordinateVector size, GameObject parent)
|
|
: base(name, position, size, parent)
|
|
{
|
|
this.GameObjects = new List<GameObject>();
|
|
}
|
|
|
|
public override void Simulate()
|
|
{
|
|
base.Simulate();
|
|
|
|
foreach (GameObject gameObject in this.GameObjects)
|
|
{
|
|
gameObject.Simulate();
|
|
}
|
|
}
|
|
}
|