Esempio n. 1
0
    private void OnSavePuckEvent(System.Object sender, EventArgs args)
    {
        PlayRandomSound(sender, _hitPadsSounds);

        _player.StopListeningToShot();

        SavePuckEvent.Raise(sender, args);
    }
Esempio n. 2
0
    private void OnCollisionEvent(System.Object sender, EventArgs args)
    {
        ColliderArgs colliderArgs = args as ColliderArgs;

        if (colliderArgs != null)
        {
            Puck tempPuck = colliderArgs.Collision.gameObject.GetComponent <Puck>();
            if (tempPuck != null && _puckToSave != null && _puckToSave.Equals(tempPuck))
            {
                SavePuckEvent.Raise(sender, args);
            }
        }
    }
Esempio n. 3
0
 private void OnSavePuckEvent(System.Object sender, EventArgs args)
 {
     TotalSaves++;
     SavePuckEvent.Raise(sender, args);
 }