I’m new in programming, started only yesterday. My goal is to disable player movement when it hits a certain object, but i keep getting error cs0131. This is the code I’m using using:
public Judėjimas movement; //reference to movement
void OnCollisionEnter (Collision collisionInfo)
{
if (collisionInfo.collider.tag = "Cylinder")
{
movement.enabled = false;
}
}
}
Please help