public static void NewBossUFO(Vector2 position) { BossUFO currentInstance = new BossUFO(); currentInstance.position = position; currentInstance.hitbox = new Rectangle((int)currentInstance.position.X, (int)currentInstance.position.Y, bossUFOAnimationArray[0].Width, bossUFOAnimationArray[0].Height); Main.activeEntities.Add(currentInstance); }
public void DestroyInstance(BossUFO boss) { Main.gameScore += 1; Main.activeEntities.Remove(boss); }