InputManager.Movement protection level erorr

well i was following a tutorial and i did every thing right but every time i type InputManager.Movement it tells me that InputManager can’t be reached due to it’s protection level
here is my code

PLAYER CONTROLER SCRIPT

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.LowLevel;

public class player_movement : MonoBehaviour
{

[SerializeField] private float _moveSpeed = 5f;

private Vector2 _movement;

private Rigidbody2D _rb;

private void Awake()
{
    _rb = GetComponent<Rigidbody2D>();
}

private void Update()
{
    _movement.Set(InputManager.Movement.x, InputManager.Movement.y);
    _rb.velocity = _movement * _moveSpeed;
}

}

INPUT MANAGER SCRIPT

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.InputSystem;

public class i : MonoBehaviour
{

public static Vector2 Movement;

private PlayerInput _playerInput;
private InputAction _moveAction;

private void Awake()
{
    _playerInput = GetComponent<PlayerInput>();
    _moveAction = _playerInput.actions["move"];
}


// Update is called once per frame
void Update()
{
    Movement = _moveAction.ReadValue<Vector2>();
}

}

^ ^ ^ This is the problem. If you did, then it would work.

Go back and review the tutorial regarding the specific field in question, eg, the instance of the field that is causing you the error.

Two steps to tutorials and / or example code:

  1. do them perfectly, to the letter (zero typos, including punctuation and capitalization)
  2. stop and understand each step to understand what is going on.

If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.

hey buddy you can go see the tutorial yourself

and also i spent like 2 hours checking my code and settings
i posted this to get an idea on a problem not to get told to go back to the tutorial that i spent 2h staring at
i told you it said error for protection level witch i couldn’t find anywhere
i tried making it pubic i tried writing the script over and over
but thanks that you took 2min of your life to put your hate on someone asking for help

ok nevermind i found the problem

1 Like

Can you please highlight the part of my message that is “hate” ?

I just went and re-read it and I was unable to find any hate in it.

Remember, this is software engineering, not modern art.

look bro if some one did his home work but got a wrong answer
and came to you to help him find the problem and then you tell him that if he had studied he would he would have gotten the correct answer. and then tell them that they don’t know how to learn.
that’s what your reply felt like
if that wasn’t what you intended i am sorry for saying that
but i think you should learn how to talk to people a bit better