static var saved90left = "KeyCode.Q";
static var t90l : KeyCode = KeyCode.Q;
function Start () {
t90l = System.Enum.Parse( typeof( t90l ), saved90left );
}
**when i do this i get this message**
ArgumentException: The requested value 'KeyCode.Q' was not found.
System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase)
System.Enum.Parse (System.Type enumType, System.String value)
Mouse2.Start () (at Assets/Scripts/Mouse2.js:13)
**can someone explain this?**
↧