public class Collision : MonoBehaviour
{
void OnCollisionEnter(Collision collision)
{
switch(collision.gameObject.tag)
{
case ("Friendly"):
Debug.Log("Run");
break;
case "Finish":
Debug.Log("Win");
break;
default:
Debug.Log("Lost");
break;
}
}
}