Exemple #1
0
    private void OnTriggerEnter(Collider other)
    {
        Kart HitKart = other.gameObject.GetComponent <Kart>();

        if (HitKart != null)
        {
            HitKart.BecomeStunned();
        }
        Destroy(gameObject);
    }