コード例 #1
0
ファイル: Actor.cs プロジェクト: 977567460/Escapes
 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);
             }
         }
     }
 }
コード例 #2
0
ファイル: Actor.cs プロジェクト: mengtest/skilldemo
    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);
                    //}
                }
            }
        }
    }
コード例 #3
0
 public void SetTargetCamp(ETargetCamp _targetCamp)
 {
     targetCamp = _targetCamp;
 }