コード例 #1
0
 void Awake()
 {
     _willAcceptTransitions = true;
     _actorPool             = new ActorPool(false);
     _backgroundPool        = new BackgroundPool(false);
     _pendingAnimations     = new Queue <AnimGroup>();
     _actorGroup            = ActorImage.GetComponent <CanvasGroup>();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: bobnatural/CMSSync
        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);
        }
コード例 #3
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;
 }