public void FindActorsByTargetCamp(ETargetCamp actorCamp, ref List <Actor> list, bool ignoreStealth = false) { for (int i = 0; i < LevelData.AllActors.Count; i++) { Actor actor = LevelData.AllActors[i]; if (GetTargetCamp(actor) == actorCamp && actor.IsDead() == false) { if (ignoreStealth == false) { list.Add(actor); } else { list.Add(actor); } } } }
public void FindActorsByTargetCamp(ETargetCamp actorCamp, ref List <Actor> list, bool ignoreStealth = false) { for (int i = 0; i < Laucher.instance.AllActors.Count; i++) { Actor actor = Laucher.instance.AllActors[i]; //Debug.Log("玩家阵营" + GetTargetCamp(actor).ToString()); if (GetTargetCamp(actor) == actorCamp && actor.IsDead() == false) { if (ignoreStealth == false) { list.Add(actor); } else { //if (actor.GetActorEffect(EActorEffect.IS_Stealth) == false) //{ // list.Add(actor); //} } } } }
public void SetTargetCamp(ETargetCamp _targetCamp) { targetCamp = _targetCamp; }