Exemplo n.º 1
0
 public ActorInfo(VoosActor actor, EditMain editMain)
 {
     this.actor    = actor;
     hierarchyPath = new List <ActorHierarchyInfo>();
     for (VoosActor thisActor = actor; thisActor != null; thisActor = thisActor.GetParentActor())
     {
         ActorHierarchyInfo info = new ActorHierarchyInfo();
         info.name        = thisActor.name;
         info.displayName = thisActor.GetDisplayName();
         if (editMain != null)
         {
             info.distance = Vector3.Distance(editMain.GetAvatarPosition(), thisActor.GetPosition());
         }
         hierarchyPath.Insert(0, info);
     }
 }