示例#1
0
        public void Render(GameObjectManager gameObjectManager)
        {
            if(GameManager.game.backgroundState != null)
            {
                List<GameObject> backgroundObjects = gameObjectManager.GetGameObjects(GameManager.game.backgroundState);
                foreach (GameObject go in backgroundObjects)
                {
                    this.Render(go);
                }
            }

            List<GameObject> gameObjects = gameObjectManager.GetGameObjects(GameManager.game.activeState);

            foreach (GameObject go in gameObjects)
            {
                this.Render(go);
            }
        }
示例#2
0
        public void Render(GameObjectManager gameObjectManager)
        {
            List<GameObject> gameObjects = gameObjectManager.GetGameObjects();

            foreach (GameObject go in gameObjects)
            {
                this.Render(go);
            }
        }