Exemplo n.º 1
0
 public ProjectileManager()
 {
     pistolBulletPool = new GObjectPool<PistolBullet>(100, 10);
     shotgunBulletPool = new GObjectPool<ShotgunBullet>(100, 50);
     assaultBulletPool = new GObjectPool<AssaultBullet>(500, 100);
     sniperBulletPool = new GObjectPool<SniperBullet>(10, 2);
 }
Exemplo n.º 2
0
 public ProjectileManager()
 {
     pistolBulletPool  = new GObjectPool <PistolBullet>(100, 10);
     shotgunBulletPool = new GObjectPool <ShotgunBullet>(100, 50);
     assaultBulletPool = new GObjectPool <AssaultBullet>(500, 100);
     sniperBulletPool  = new GObjectPool <SniperBullet>(10, 2);
 }
Exemplo n.º 3
0
 public DropFragmentManager()
 {
     this.fragments = new GObjectPool<DropFragment>(MAX_PROJECTILES, PRE_BUILD);
 }
 public AlienProjectileManager()
 {
     alienProjectilePool = new GObjectPool <AlienBullet>(40, 30);
 }
Exemplo n.º 5
0
 public override void ConstructFromXML(XML xml)
 {
     base.ConstructFromXML(xml);
     OnCardClick = new EventListener(this, "OnCardClick");
     CardPool    = new GObjectPool(this.displayObject.cachedTransform);
 }
Exemplo n.º 6
0
 public DropFragmentManager()
 {
     this.fragments = new GObjectPool <DropFragment>(MAX_PROJECTILES, PRE_BUILD);
 }
Exemplo n.º 7
0
 partial void Init()
 {
     CardPool    = new GObjectPool(this.displayObject.cachedTransform);
     OnCardClick = new EventListener(this, "OnCardClick");
 }
 public AlienProjectileManager()
 {
     alienProjectilePool = new GObjectPool<AlienBullet>(40, 30);
 }