コード例 #1
0
 internal void AddActor(Actor actor)
 {
     if (OutPhaseList.Count == 0)
     {
         actor.Id = Actors.GetCount();
         foreach (Component component in actor.components)
         {
             component.Owner = actor;
         }
         Actors.AddActor(actor);
         SortActor(actor);
     }
     if (OutPhaseList.Count > 0)
     {
         var tempID = OutPhaseList.Dequeue();
         actor.Id = tempID;
         Actors.actors[tempID] = actor;
         foreach (Component component in actor.components)
         {
             component.Owner = actor;
         }
         SortActor(actor);
     }
 }