/// <summary> /// エネミーの死亡と同時に、死亡したエネミーのデータのみを破棄。 /// </summary> public void EnemyErase() { Enemies.RemoveAt(CurrentTargetIndex); Pos.RemoveAt(CurrentTargetIndex); MainHP.RemoveAt(CurrentTargetIndex); MainSTR.RemoveAt(CurrentTargetIndex); MainDEF.RemoveAt(CurrentTargetIndex); CoreHP.RemoveAt(CurrentTargetIndex); CoreSTR.RemoveAt(CurrentTargetIndex); CoreDEF.RemoveAt(CurrentTargetIndex); CoreBroken.RemoveAt(CurrentTargetIndex); EnemyElems = Enemies.Count; }
/// <summary> /// エネミーの死亡と同時に、死亡したエネミーのデータのみを破棄。 /// </summary> public void EnemyErase() { BattleManager.Instance.removeEnemyData(CurrentTargetIndex); Enemies.RemoveAt(CurrentTargetIndex); Pos.RemoveAt(CurrentTargetIndex); MainHP.RemoveAt(CurrentTargetIndex); MainSTR.RemoveAt(CurrentTargetIndex); MainDEF.RemoveAt(CurrentTargetIndex); CoreHP.RemoveAt(CurrentTargetIndex); CoreSTR.RemoveAt(CurrentTargetIndex); CoreDEF.RemoveAt(CurrentTargetIndex); CoreBroken.RemoveAt(CurrentTargetIndex); Size.RemoveAt(CurrentTargetIndex); CollisionIndex.RemoveAt(CurrentTargetIndex); EnemyElems = Pos.Count; }