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