示例#1
0
 void Awake()
 {
     m_parent = FindParentMixBus(transform.parent);
     if (m_parent != null)
     {
         m_parent.RegisterMixBus(this);
     }
 }
示例#2
0
 void Awake()
 {
     m_mixBus          = WingroveMixBus.FindParentMixBus(transform);
     m_instanceLimiter = WingroveMixBus.FindParentLimiter(transform);
     if (m_mixBus != null)
     {
         m_mixBus.RegisterSource(this);
     }
     FindParameterModifiers(transform);
     Initialise();
 }
示例#3
0
 public static WingroveMixBus FindParentMixBus(Transform t)
 {
     if (t == null)
     {
         return(null);
     }
     else
     {
         WingroveMixBus mixBus = t.GetComponent <WingroveMixBus>();
         if (mixBus == null)
         {
             return(FindParentMixBus(t.parent));
         }
         else
         {
             return(mixBus);
         }
     }
 }
 void Awake()
 {
     m_mixBus = WingroveMixBus.FindParentMixBus(transform);
     m_instanceLimiter = WingroveMixBus.FindParentLimiter(transform);
     if (m_mixBus != null)
     {
         m_mixBus.RegisterSource(this);
     }
     FindParameterModifiers(transform);
     Initialise();
 }
 void Awake()
 {
     m_mixBus = GetComponent<WingroveMixBus>();
     m_mixBus.AddDuck(this);
 }
示例#6
0
 void Awake()
 {
     m_mixBus = GetComponent <WingroveMixBus>();
     m_mixBus.AddDuck(this);
 }
示例#7
0
 public void UnregisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Remove(mixBus);
 }
示例#8
0
 public void RegisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Add(mixBus);
 }
 void Awake()
 {
     m_audioSources = m_groupToMonitor.GetComponentsInChildren<BaseWingroveAudioSource>();
     m_mixBus = GetComponent<WingroveMixBus>();
     m_mixBus.AddDuck(this);
 }
示例#10
0
 void Awake()
 {
     m_audioSources = m_groupToMonitor.GetComponentsInChildren <BaseWingroveAudioSource>();
     m_mixBus       = GetComponent <WingroveMixBus>();
     m_mixBus.AddDuck(this);
 }
 void Awake()
 {
     m_parent = FindParentMixBus(transform.parent);
     if (m_parent != null)
     {
         m_parent.RegisterMixBus(this);
     }
 }
 public void UnregisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Remove(mixBus);
 }
 public void RegisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Add(mixBus);
 }