void sendcallBackEvent(CallBackEvents callBackEvent) { for (int i = 0; i < m_Listeners.Count; i++) { m_Listeners[i].CallBack(callBackEvent); } }
public void CallBack(CallBackEvents callBack) { switch (callBack) { case CallBackEvents.Player_ComboTimeStart: ComboTimeStart(); break; case CallBackEvents.Player_AttackBegin: AttackBegin(); AttackWooshSound(); break; case CallBackEvents.Player_AttackBegin_AOE: AOEAttack(); AttackAirAOESound(); break; case CallBackEvents.Player_AttackBegin_HeavyAOE: HeavyAOEAttack(); break; case CallBackEvents.Player_ComboTimeEnd: ComboTimeEnd(); break; case CallBackEvents.Player_AttackOver: AttackOver(); break; } }
public void CallBack(CallBackEvents callBack) { if (callBack == CallBackEvents.Drink_Done) { m_IsDoneDrinking = true; } }
public void CallBack(CallBackEvents callBack) { if (callBack == CallBackEvents.Cutscene_Done) { m_ScreenFade.BeginFadeOut(); } }
public void CallBack(CallBackEvents callBack) { if (callBack == CallBackEvents.KnockBack_Done) { m_KnocbackForwardX = 0; } }
public void CallBack(CallBackEvents callBack) { if (callBack == CallBackEvents.Shake_Done) { m_DoneShaking = true; m_Source.Stop(); m_Source.PlayOneShot(m_SprayPainting[Random.Range(0, m_SprayPainting.Length)]); } }
public override void CallBack(CallBackEvents callBack) { switch(callBack) { case CallBackEvents.FootStep_Zoe: //Play footstep sound. if(!m_IsPlayingSound) { m_SFX.playSound(this.transform, Sounds.Run); m_IsPlayingSound = true; } break; } }
public void CallBack(CallBackEvents callBackEvents) { switch (callBackEvents) { case CallBackEvents.FurbullFootstep: if (m_IsPlayingSound == false) { //temporary muted until a solution for not having "popcorn" like sound effects from hordes of furbulls //m_SFX.playSound(this.transform, Sounds.FurbullHop); //m_IsPlayingSound = true; } break; } }
public override void CallBack(CallBackEvents callBack) { switch (callBack) { case CallBackEvents.FootStep_Zoe: //Play footstep sound. if (!m_IsPlayingSound) { m_SFX.playSound(this.transform, Sounds.Run); m_IsPlayingSound = true; } break; } }
public virtual void CallBack(CallBackEvents callBack) { }
public void CallBack(CallBackEvents callBack) { switch(callBack) { case CallBackEvents.Player_ComboTimeStart: ComboTimeStart(); break; case CallBackEvents.Player_AttackBegin: AttackBegin(); AttackWooshSound(); break; case CallBackEvents.Player_AttackBegin_AOE: AOEAttack(); AttackAirAOESound(); break; case CallBackEvents.Player_AttackBegin_HeavyAOE: HeavyAOEAttack(); break; case CallBackEvents.Player_ComboTimeEnd: ComboTimeEnd(); break; case CallBackEvents.Player_AttackOver: AttackOver(); break; } }