Ejemplo n.º 1
0
 public void Initialise(GameObject originator, GameObject target)
 {
     m_originatorSource = originator;
     m_targetGameObject = target;
     m_hasTarget        = (target != null);
     m_audioClipSource  = m_originatorSource.GetComponent <BaseWingroveAudioSource>();
     m_pitch            = m_audioClipSource.GetNewPitch();
     m_audioClipSource.AddUsage();
     transform.parent = m_originatorSource.transform;
     Update();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     m_audioSource = GetComponent <BaseWingroveAudioSource>();
     m_beatSyncs.Add(this);
 }
Ejemplo n.º 3
0
 public void Initialise(GameObject originator, GameObject target)
 {
     m_originatorSource = originator;
     m_targetGameObject = target;
     m_hasTarget = (target != null);
     m_audioClipSource = m_originatorSource.GetComponent<BaseWingroveAudioSource>();
     m_pitch = m_audioClipSource.GetNewPitch();
     m_audioClipSource.AddUsage();
     transform.parent = m_originatorSource.transform;
     Update();
 }
Ejemplo n.º 4
0
 public void RemoveSource(BaseWingroveAudioSource source)
 {
     m_audioSources.Remove(source);
 }
Ejemplo n.º 5
0
 public void RegisterSource(BaseWingroveAudioSource source)
 {
     m_audioSources.Add(source);
 }
Ejemplo n.º 6
0
 // Use this for initialization
 void Start()
 {
     m_audioSource = GetComponent<BaseWingroveAudioSource>();
     m_beatSyncs.Add(this);
 }
Ejemplo n.º 7
0
 public void RemoveSource(BaseWingroveAudioSource source)
 {
     m_audioSources.Remove(source);
 }
Ejemplo n.º 8
0
 public void RegisterSource(BaseWingroveAudioSource source)
 {
     m_audioSources.Add(source);
 }