I can't access my FirstPersonController variables despite making them public, here is the full error :
Assets/Script/script.cs(15,67): error CS0122: `UnityStandardAssets.Characters.FirstPerson.FirstPersonController.m_WalkSpeed' is inaccessible due to its protection level
In script.cs :
using UnityStandardAssets.Characters.FirstPerson;
...
GetComponent().m_WalkSpeed = 0f;
and in FirstPersonController.cs :
[SerializeField] public float m_WalkSpeed;
↧