It doesn't print anything to the console with my delivery script

It doesn’t print anything to the console with my delivery script: My script looks like this:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Delivery : MonoBehaviour
{
void OnCollisionEnter2D(Collision2D other)
{
Debug.Log(“Ouch!”);
}

void OnTriggerEnter2D(Collider2D other)
{
    if (other.tag == "Package")
    {
        Debug.Log("Package picked up");
    }
}

}

Here are also some pictures:


If anyone can help me I would appriciate that a lot.

Thanks

So sorry I actually just forgot to attach the script :sweat_smile:

That happens to the best. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms