// public void DoDamage(DBSkillDamageConf damage) { List <ActorBase> enemyList = GameMain.curSceneManager.GetEnemyList(actor); if (enemyList == null) { return; } for (int i = 0; i < enemyList.Count; i++) { if (!enemyList[i].isAlive) { continue; } ActorBase enemy = enemyList[i]; if (!IsInAttackRange(enemy, damage)) { continue; } enemy.BeAttacked(actor, damage, skill); //Debug.Log("Do damage: " + damage.ID); } }