I am really new to scripting.
Here’s what I’ve got so far:
void OnCollisionEnter(Collision Dest)
{
if(Dest.gameObject.name == "Projectile")
{
Destroy(Object.Projectile);
}
void Update()
{
OnCollisionEnter();
}
Can’t get the method to do anything, I’ve attached it to the projectile gameobject and everything.