public override void OnInteract(collid.CollitionInfo info) { if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType)) { return; } this.Life--; }
public abstract void OnInteract(collid.CollitionInfo info);
public override void OnInteract(collid.CollitionInfo info) { if (typeof(Item).IsAssignableFrom(info.CollitionObjectType)) return; if (!this.isDeathTime) { this.Life--; this.mainShotType = MainShotType.Normal; this.subShotType = SubShotType.None; this.power = 0; this.bomCount = 1; this.isDeathTime = true; DX.PlaySoundMem(SoundLoader.GetInstance().Sounds["death.mp3"], DX.DX_PLAYTYPE_BACK); this.position.PosX = SSGame.GetInstance().GetBattleWindowSize().Width / 2; this.position.PosY = SSGame.GetInstance().GetBattleWindowSize().Height; } }
public override void OnInteract(collid.CollitionInfo info) { //ぶつかったら消える this.Life = 0; }
public override void OnInteract(collid.CollitionInfo info) { if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType)) { this.AddItemEffect(((EntityPlayer)info.CollitionInteractor)); this.Life = 0; } }
public override void OnInteract(collid.CollitionInfo info) { //なにもしない(貫通) }
public override void OnInteract(collid.CollitionInfo info) { if (typeof(EntityPlayer).IsAssignableFrom(info.CollitionObjectType)) { //とりあえずこっちは何もしない(体当たりで死んだらアレなので) return; } //ライフを1減らす this.Life--; if (!this.IsLiving()) { if (this.KilledByPlayer != null) { this.KilledByPlayer(this.score); } } }