private void SearchHierarchyAndConnectDirector(IEnumerable <PlayableDirector> directors, PlayableGraph graph, List <Playable> outplayables)
 {
     foreach (PlayableDirector current in directors)
     {
         if (current != null)
         {
             if (current.get_playableAsset() != this.m_ControlDirectorAsset)
             {
                 outplayables.Add(DirectorControlPlayable.Create(graph, current));
             }
         }
     }
 }
示例#2
0
 private void SearchHierarchyAndConnectDirector(IEnumerable <PlayableDirector> directors, PlayableGraph graph, List <Playable> outplayables)
 {
     foreach (PlayableDirector playableDirector in directors)
     {
         if (playableDirector != null)
         {
             if (playableDirector.playableAsset != this.m_ControlDirectorAsset)
             {
                 outplayables.Add(DirectorControlPlayable.Create(graph, playableDirector));
             }
         }
     }
 }
 void SearchHierarchyAndConnectDirector(IEnumerable <PlayableDirector> directors, PlayableGraph graph,
                                        List <Playable> outplayables, bool disableSelfReferences)
 {
     foreach (var director in directors)
     {
         if (director != null)
         {
             if (director.playableAsset != m_ControlDirectorAsset)
             {
                 outplayables.Add(DirectorControlPlayable.Create(graph, director));
             }
             // if this self references, disable the director.
             else if (disableSelfReferences)
             {
                 director.enabled = false;
             }
         }
     }
 }