public bool Crashed(IWeapon weapon) { this.HP -= weapon.GetAttackPoint(); if (this.HP <= 0) { EffectUtils.中爆発(this.X, this.Y); return(false); } return(true); }
public bool Crashed(IWeapon weapon) { this.X += 10.0 * (weapon.IsFacingLeft() ? -1 : 1); // ヒットバック this.HP -= weapon.GetAttackPoint(); if (this.HP <= 0) // ? dead { EffectUtils.中爆発(this.X, this.Y); return(false); } return(true); }
public bool Crashed(IWeapon weapon) { EffectUtils.中爆発(this.X, this.Y); return(false); }