void sendcallBackEvent(CallBackEvents callBackEvent)
 {
     for (int i = 0; i < m_Listeners.Count; i++)
     {
         m_Listeners[i].CallBack(callBackEvent);
     }
 }
예제 #2
0
    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;
        }
    }
예제 #3
0
 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();
     }
 }
 void sendcallBackEvent(CallBackEvents callBackEvent)
 {
     for (int i = 0; i < m_Listeners.Count; i++)
     {
         m_Listeners[i].CallBack(callBackEvent);
     }
 }
예제 #6
0
 public void CallBack(CallBackEvents callBack)
 {
     if (callBack == CallBackEvents.KnockBack_Done)
     {
         m_KnocbackForwardX = 0;
     }
 }
예제 #7
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)]);
     }
 }
예제 #8
0
 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;
     }
 }
예제 #9
0
 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;
     }
 }
예제 #10
0
 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)
 {
 }
예제 #12
0
 public virtual void CallBack(CallBackEvents callBack)
 {
 }
예제 #13
0
    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;
        }
    }