private void OnTriggerEnter(Collider other) { Kart HitKart = other.gameObject.GetComponent <Kart>(); if (HitKart != null) { HitKart.BecomeStunned(); } Destroy(gameObject); }