I get the following error in MouseLook.cs. I'm new to C# so this is puzzling me
Error CS0120 An object reference is required for the non-static field, method, or property 'Renderer.materials' AncientTimes.CSharp
This is the current code.
if ( GetComponent()
){
GetComponent();
Renderer.materials[materialIndex].SetTextureOffset(textureName, uvOffset);
}
}
}
↧