{
private int tilly = 64;
int counter = 0;
void OnCollisionEnter(Collision collision)
{
if(collision.gameObject.tag == "Player")
{
gameObject.GetComponent<Renderer>().material.color = Color.black;
counter = counter + 1;
print(counter);
if(counter == tilly)
{
print("done");
}
}
}
and furthermore, what’s funny that it keep duplicating whenever i roll over the “already” black tiles