public static bool HasObserverTimeline(Transform transform)
 {
     if (!USRuntimeUtility.IsTimelineContainer(transform))
     {
         return(USRuntimeUtility.IsObserverTimeline(transform));
     }
     Transform[] componentsInChildren = transform.GetComponentsInChildren <Transform>();
     for (int i = 0; i < componentsInChildren.Length; i++)
     {
         Transform transform2 = componentsInChildren[i];
         if (USRuntimeUtility.IsObserverTimeline(transform2))
         {
             return(true);
         }
     }
     return(false);
 }
        public static bool IsObserverContainer(Transform transform)
        {
            USTimelineContainer component = transform.GetComponent <USTimelineContainer>();

            if (component == null)
            {
                return(false);
            }
            USTimelineBase[] timelines = component.Timelines;
            for (int i = 0; i < timelines.Length; i++)
            {
                USTimelineBase uSTimelineBase = timelines[i];
                if (USRuntimeUtility.IsObserverTimeline(uSTimelineBase.transform))
                {
                    return(true);
                }
            }
            return(false);
        }