- Home /
Question by
farizius · May 17, 2018 at 06:07 PM ·
scripting beginnerkeyboard
how to get my gui keyboard input work ?
im trying to get my gui button as keyboard input with on click listener it says : Cannot cast from source type to destination type.
public class WordInput : MonoBehaviour {
public WordManager maincontroller;
// Update is called once per frame
void Update () {
foreach (char letter in System.Enum.GetValues(typeof(KeyCode)))
{
maincontroller.TypeLetter(letter);
Debug.Log (letter);
}
}
Comment
Your answer
