The following error appears :
Script error: OnCollisionEnter
This message parameter has to be of type: Collision
The message will be ignored.
My code is :
using UnityEngine;
public class Collision : MonoBehaviour
{
void OnCollisionEnter(Collision collisionidentifier)
{
Debug.Log(collisionidentifier.GetComponent().name);
}
}
If anyone could help, I would really appreciate it.