public void PlayerPushedOut(SumoWrestler defendant, SumoWrestler aggressor) { defendant.Restart(); if (aggressor) { ChainJam.AddPoints(aggressor.ID, 1); points[(int)aggressor.ID] += 1; } }
void OnCollisionEnter(Collision collision) { SumoWrestler w; if ((w = collision.collider.GetComponent<SumoWrestler>()) != null) { lastContact = w; _chargeImpactParticles.Play(); } StartCoroutine(Vibrate(0.2f, 0.5f, 0.5f)); }
void OnCollisionEnter(Collision collision) { SumoWrestler w; if ((w = collision.collider.GetComponent <SumoWrestler>()) != null) { lastContact = w; _chargeImpactParticles.Play(); } StartCoroutine(Vibrate(0.2f, 0.5f, 0.5f)); }