ScrollingShooter.GameObjectManager.CreateExplosion2 C# (CSharp) Method

CreateExplosion2() public method

Factory method for creating an explosion
public CreateExplosion2 ( uint colliderID, float scale ) : ScrollingShooter.Explosion2
colliderID uint The source of the explosion
scale float The scale of the explosion
return ScrollingShooter.Explosion2
        public Explosion2 CreateExplosion2(uint colliderID, float scale)
        {
            Explosion2 ex;
            uint id = NextID();
            Vector2 pos = new Vector2(GetObject(colliderID).Bounds.X, GetObject(colliderID).Bounds.Y);
            ex = new Explosion2(id, pos, content, scale);
            QueueGameObjectForCreation(ex);
            return ex;
        }