/// <summary> /// Dodaje obiekt i jego potomków do listy. /// </summary> /// <param name="gameObject">Obiekt do dodania</param> /// <param name="mission">Misja, do której obiekt jest wysyłany</param> public void AddGameObject(GameObject gameObject, Mission mission) { gameObject.Mission = mission; foreach (GameObject child in gameObject.GetChildren()) { child.Mission = mission; } gameObjects.Add(gameObject); gameObjects.AddRange(gameObject.GetChildren()); }
public void StartMission() { Mission = new Mission(MainGame); }