Add initial game code
This commit is contained in:
parent
f80a60e208
commit
1383997ebf
55 changed files with 1355 additions and 0 deletions
22
scripts/GameObjects/Nebula.cs
Normal file
22
scripts/GameObjects/Nebula.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue