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); } } }