private void OnSavePuckEvent(System.Object sender, EventArgs args) { PlayRandomSound(sender, _hitPadsSounds); _player.StopListeningToShot(); SavePuckEvent.Raise(sender, args); }
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); } } }
private void OnSavePuckEvent(System.Object sender, EventArgs args) { TotalSaves++; SavePuckEvent.Raise(sender, args); }