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);
}
}
↧