I know there are a ton of those answers on this and I tried so far to follow these, but for some reason the variable _axis from the Joystick.cs can not be called from the following c# script.
CharacterMovement.cs:
private Vector2 joyAxis;
void Start () {
joyAxis = GameObject.Find("Joystick").GetComponent<Joystick>()._axis;
}
Error: the type or namespace name `Joystick’ could not be found.
The class is correctly spelled.
I also checked the “Joystick”-gameObject to make sure the Joystick-Script is assigned.