please help… What do i do??
Assets\script\PlayerController.cs(72,13): error CS0120: An object reference is required for the non-static field, method, or property ‘pointer.Change()’
public class PlayerController : MonoBehaviour
{
private void Update()
{
// left, a = -1, default = 0, rifgt, d = +1
float x = Input.GetAxisRaw(“Horizontal”);
rigid2D.velocity = new Vector3(x * moveSpeed, rigid2D.velocity.y);
if (Input.GetAxisRaw("Horizontal") > 0)
{
rend.flipX = true;
pointer.Change();
}
else if (Input.GetAxisRaw("Horizontal") < 0)
{
rend.flipX = false;
pointer.fixChange();
}
}