idle-starship/scripts/GameObjects/Nebula.cs
2025-09-12 08:34:06 -04:00

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();
}
}
}