コード例 #1
0
 private void checkForPresentedClones()
 {
     EntityComponent[] array = new EntityComponent[]
     {
         this.get_Entities().player.get_LeftSupportArea(),
         this.get_Entities().player.get_RightSupportArea(),
         this.get_Entities().opponent.get_LeftSupportArea(),
         this.get_Entities().opponent.get_RightSupportArea()
     };
     for (int i = 0; i < array.Length; i++)
     {
         for (int j = 0; j < array[i].Children.Count; j++)
         {
             EntityComponent entityComponent = array[i].Children[j];
             if (entityComponent.GetAttribute <bool?>(global::g.D.U).get_Value() == true)
             {
                 Finder.FindOrThrow <CommandExecutor>().Execute(new CreatePresentedClone(entityComponent, new MutableAttributes(entityComponent), false));
                 break;
             }
         }
     }
 }