Example #1
0
 protected override void OnGameEventReceived(GameEvent ge)
 {
     base.OnGameEventReceived(ge);
     if (ge.Is(CoreGameEventType.CatStartEating))
     {
         _splashEffect.Play();
     }
 }
Example #2
0
 protected override void OnGameEventReceived(GameEvent ge)
 {
     base.OnGameEventReceived(ge);
     if (ge.Is(CoreGameEventType.StartCombo) && ai.IsHappy())
     {
         foreach (var effect in _comboEffects)
         {
             effect.Play();
         }
     }
 }