Exemple #1
0
        static PowerUpFactory()
        {
            //init all pools and add them to the dictionary
            GlobalFactory <SpeedPow> .RegisterPool(typeof(SpeedPow), () => new SpeedPow());

            GlobalFactory <BombPow> .RegisterPool(typeof(BombPow), () => new BombPow());

            GlobalFactory <WallPass> .RegisterPool(typeof(WallPass), () => new WallPass());

            GlobalFactory <Mystery> .RegisterPool(typeof(Mystery), () => new Mystery());
        }
Exemple #2
0
        static EnemyFactory()
        {
            GlobalFactory <IEnemy> .RegisterPool(typeof(Balloom), () => new Balloom());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Doll), () => new Doll());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Oneal), () => new Oneal());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Minvo), () => new Minvo());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Ovapi), () => new Ovapi());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Pass), () => new Pass());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Kondoria), () => new Kondoria());

            GlobalFactory <IEnemy> .RegisterPool(typeof(Pontan), () => new Pontan());
        }