public void SetEnemy(EnemyController enemyController) { enemy = enemyController; ITargetable targetCandidate = enemy.GetComponent <ITargetable>(); foreach (IAtkSkill atk in GetComponentsInChildren <IAtkSkill>()) { targetCandidate.HandleAttack(atk); } timeInBattle = 0f; totalDamage = 0f; }