Exemplo n.º 1
0
        public override void Initialize()
        {
            cameraManager = Game.Services.GetService(typeof(CameraManager)) as CameraManager;

            if (cameraManager == null)
                throw new InvalidOperationException();
            isInitialized = true;

            base.Initialize();
        }
Exemplo n.º 2
0
        public override void Initialize()
        {
            cameraManager = Game.Services.GetService(typeof(CameraManager)) as CameraManager;
            terrain = Game.Services.GetService(typeof(Terrain)) as Terrain;
            //gameLevel = Game.Services.GetService(typeof(GameLevel)) as GameLevel;

            base.Initialize();
        }