void Awake() { m_parent = FindParentMixBus(transform.parent); if (m_parent != null) { m_parent.RegisterMixBus(this); } }
void Awake() { m_mixBus = WingroveMixBus.FindParentMixBus(transform); m_instanceLimiter = WingroveMixBus.FindParentLimiter(transform); if (m_mixBus != null) { m_mixBus.RegisterSource(this); } FindParameterModifiers(transform); Initialise(); }
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 = GetComponent<WingroveMixBus>(); m_mixBus.AddDuck(this); }
void Awake() { m_mixBus = GetComponent <WingroveMixBus>(); m_mixBus.AddDuck(this); }
public void UnregisterMixBus(WingroveMixBus mixBus) { m_childMixBuses.Remove(mixBus); }
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); }
void Awake() { m_audioSources = m_groupToMonitor.GetComponentsInChildren <BaseWingroveAudioSource>(); m_mixBus = GetComponent <WingroveMixBus>(); m_mixBus.AddDuck(this); }