I’m trying to get Penelope to collide with the gear. When she collides I should get a gear point and then destroy gear. Plus it should say Gear Collision! in the console. Idk what’s wrong. I’m pretty new to coding.
Thanks
public var gearPoints : int;
function OnCollisionEnter (collision : Collision) {
if (collision.gameObject.tag == "Gear")
{
gearPoints += 1;
Debug.Log("Gear Collision!");
}
}
