예제 #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);
 }
예제 #11
0
 void Awake()
 {
     m_parent = FindParentMixBus(transform.parent);
     if (m_parent != null)
     {
         m_parent.RegisterMixBus(this);
     }
 }
예제 #12
0
 public void UnregisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Remove(mixBus);
 }
예제 #13
0
 public void RegisterMixBus(WingroveMixBus mixBus)
 {
     m_childMixBuses.Add(mixBus);
 }