Ok, so i have a ball game where you roll a marble around obstacles. I made it 1 year ago. I went back to it recently and i get the 'An instance of type UnityEngine.PhysicsMaterial is required to access non static member bounciness. Line 101. At First it started like this:
collider.material.bouncyness = 0.5;
I got the error listing many different scripts saying that UnityEngine.PhysicMaterial.bouncyness is obsolete. Use PhysicMaterial.bounciness instead.
So I changed it into:
PhysicMaterial.bounciness = 0.5;
That took away all the errors on the other scrip but on the debugging console it only shows that script with the ‘An instance’ error!It was working fine a year ago! Is it an update? What did i do wrong?