internal ProjectileClassAlpha() { // Used for lazy initialization in the bullet pool explosionAni = (ExplosionAnimation)((IPrototype <Animation>)prototypeExplosionAnimation).Clone(); bulletAni = (BulletAnimation)((IPrototype <Animation>)prototypeBulletAnimation).Clone(); explosionAni.AnimationPosition = Point.Empty; bulletAni.AnimationPosition = Point.Empty; bulletAni.Collider.Collided += BulletCollider_Collided; }
internal ProjectileClassAlpha() { // Used for lazy initialization in the bullet pool explosionAni = (ExplosionAnimation)((IPrototype<Animation>)prototypeExplosionAnimation).Clone(); bulletAni = (BulletAnimation)((IPrototype<Animation>)prototypeBulletAnimation).Clone(); explosionAni.AnimationPosition = Point.Empty; bulletAni.AnimationPosition = Point.Empty; bulletAni.Collider.Collided += BulletCollider_Collided; }