system
1
Assets/Scripts/SideWalker.cs(75,23): error CS0176: Static member `UnityEngine.KeyCode.Equals' cannot be accessed with an instance reference, qualify it with a type name instead
Event e = Event.current;
Debug.Log("Detected key code: " + e.keyCode);
if (e.keyCode.Equals("leftArrow"))
transform.Translate(Vector3.left * Time.deltaTime * speed);
Loius
2
Equals is a class function (of KeyCode), not a member function (of e.keyCode)