void Awake() { _willAcceptTransitions = true; _actorPool = new ActorPool(false); _backgroundPool = new BackgroundPool(false); _pendingAnimations = new Queue <AnimGroup>(); _actorGroup = ActorImage.GetComponent <CanvasGroup>(); }
static int RunConsole() { BackgroundPool.Run(true); do { Console.Write("press Enter to exit.\n"); } while (Console.ReadKey(false).Key != ConsoleKey.Enter); BackgroundPool.Stop(); return(0); }
public SpaceForceGame() { graphics = new GraphicsDeviceManager(this); SetFullScreen(); Content.RootDirectory = "Content"; asteroidPool = new AsteroidPool(this); backgroundPool = new BackgroundPool(this); enemyShipPool = new EnemyShipPool(this); laserPool = new LaserPool(this); lifeGui = new LifeGui(this); SoundEffect.MasterVolume = 0.1f; MediaPlayer.Volume = 0.1f; }