public override bool AddChild(LiveProxy proxy)
    {
        proxy.transform.SetParent(trackParent, false);
        if (proxy.GetType() == typeof(LiveTrackProxy)) createTrackSelectButton((LiveTrackProxy)proxy);

        return base.AddChild(proxy);
    }
 public virtual bool AddChild(LiveProxy proxy)
 {
     setLayoutDirty();
     if (m_children == null) m_children = new HashSet<LiveProxy>();
     proxy.parent = this;
     return m_children.Add(proxy);
 }
 public override bool AddChild(LiveProxy proxy)
 {
     if(proxy.GetType() == typeof(LiveDeviceProxy))
         proxy.transform.SetParent(deviceParent);
     else if (proxy.GetType() == typeof(LiveClipProxy))
         proxy.transform.SetParent(clipParent);
     return base.AddChild(proxy);
 }
Exemple #4
0
 private void InitializeClients()
 {
     Cdn      = new CdnProxy(_internalData);
     Dns      = new DnsProxy(_internalData);
     IaaS     = new IaaSProxy(_internalData);
     Live     = new LiveProxy(_internalData);
     Security = new SecurityProxy(_internalData);
     Storage  = new StorageProxy(_internalData);
     Vod      = new VodProxy(_internalData);
 }
 void Awake()
 {
     m_proxy = GetComponent<LiveProxy>();
 }
 public override bool AddChild(LiveProxy proxy)
 {
     proxy.transform.SetParent(parameterParent);
     return base.AddChild(proxy);
 }
 public virtual void RemoveChild(LiveProxy child)
 {
     m_children.Remove(child);
 }
 public void init(LiveProxy proxy, ButtonDemoToggle button)
 {
     track = (LiveTrackProxy)proxy;
     this.button = button;
     AddWidget(button);
 }