public override void collide(object sender, CActor collider) { if (collider is Player.CPlayer) { if (!INVINCIBLE_STATES.Contains(collider.state)) { collider.shock(); collider.dealDamange(2, collider); } } }
public override void collide(object sender, CActor collider) { _killMe = true; if (collider is Player.CPlayer) { if (!INVINCIBLE_STATES.Contains(collider.state)) { collider.dealDamange(4, collider); } } }
public override void collide(object sender, CActor collider) { base.collide(sender, collider); if (collider is Player.CPlayer) { if (!INVINCIBLE_STATES.Contains(collider.state)) { collider.freeze(); collider.dealDamange(1, collider); } } }
public override void collide(object sender, CActor collider) { base.collide(sender, collider); _hitBox.destroy(); _hitBox = null; _state = ACTOR_STATES.EXPLODE; swapImage(_BREAKING); if (collider is Player.CPlayer) { if (!INVINCIBLE_STATES.Contains(collider.state)) { collider.dealDamange(1, collider); } } }