void OnTriggerStay(Collider other) { switch (other.tag) { case "Obstacle": Debug.Log("Hit"); collide = true; Sending.HitRegistered(); break; case "Floating": Debug.Log("Floating object hit"); break; } }