Exemple #1
0
 public void NotifyDashState()
 {
     if (player != null)
     {
         if (isDashing)
         {
             eventEmitter.EmitPlayerDashStartedEvent(player);
         }
         else
         {
             eventEmitter.EmitPlayerDashStoppedEvent(player);
         }
     }
 }
Exemple #2
0
 private void ExecuteEvent(PlayerDashStartedEvent playerDashStartedEvent)
 {
     eventEmitter.EmitPlayerDashStartedEvent(
         playerObjects[playerDashStartedEvent.Profile]
         );
 }