コード例 #1
0
ファイル: ObjectContainer.cs プロジェクト: smarthaert/icgame
        /// <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);
 }