public void AddBanjo(Vector2 location, Banjo.BanjoType type) { if (_spriteCount < _maxSprites) { Banjos.Add(new Banjo(NewID(), ObjectBox, type, BanjoTexture, BanjoColorData, makeExplosions(4), _randGen, ExplosionSound, location, NewBanjoLayer())); } }
public void LoadBanjo(int ID, Banjo.BanjoType type, float x, float y, int ageInMilliseconds) { Vector2 location = new Vector2(x, y); Banjos.Add(new Banjo(ID, ObjectBox, type, BanjoTexture, BanjoColorData, makeExplosions(4), _randGen, ExplosionSound, location, NewBanjoLayer(), ageInMilliseconds)); }