예제 #1
0
        /// <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());
        }
예제 #2
0
 public void StartMission()
 {
     Mission = new Mission(MainGame);
 }