Reputation: 1
using UnityEngine;
public class PlayerCollision : MonoBehaviour
{
void onCollisionEnter (){
Debug.Log("We hit something.");
}
}
I have rigidbody on every object and I attacked the script to my object, but still not working. I am following a Brackeys tutorial and it is a little old so I don't know if something has changed about the syntax.
Upvotes: 0
Views: 52