/// <summary> /// Add a new powerup /// </summary> public void Add(Powerup p) { powerups.AddLast(p); }
/// <summary> /// Create a new powerup and add it to the powerup manager /// </summary> public Powerup AddPowerup( PowerupType type, Matrix transform) { // create powerup Powerup p = new Powerup(type, transform, powerupModels[(int)type]); // add it to the powerup manager powerup.Add(p); return p; }