public Crystal(string name, Vector2 initialPosition, int health, CrystalMan master) : base(name, new Actor(Animations), 1, health) { this.master = master; SpawnPoint = initialPosition; GroundPos = SpawnPoint; Scale = 1.25f; HealthChanged += new HealthChangedHandler(delegate(object o, int value) { if (Health == 0) { State = SpriteState.Dead; } else if (Health <= MaxHealth * 0.5) { for (int x = 0; x < 7; x++) { mActor.Animations[x] = mActor.Animations[x + 7]; } // REPLACE TO BROKEN ANIMATIONS HERE mActor.Animations[19] = mActor.Animations[20]; } }); }
internal ShiningPersonality(Enemies.CrystalMan master) { this.master = master; mStates = States().GetEnumerator(); This.Game.AudioManager.AddBackgroundMusic("Music/CrystalBossBG"); }