public void OnPointerClick(PointerEventData eventData) { WSGameState.LetterClick(I, J); AudioSource audio = GetComponent <AudioSource>(); audio.Play(); }
void SelectSpell(PointerEventData eventData) { SpellInfo si = Spells.FindSpell(eventData.pointerCurrentRaycast.gameObject.name); WSGameState.CastSpell(si); SpellCanvas.SetActive(false); }
// Use this for initialization void Start() { WSGameState.InitGameGlobal(); TryListBox = new ListBox <VerticalLayoutGroup>(TryList, TextPrefab); HistoryListBox = new ListBox <VerticalLayoutGroup>(HistoryList, TextPrefab); SpellListBox = new ListBox <GridLayoutGroup>(SpelllList, SpellPrefab); SpellListFoundBox = new ListBox <GridLayoutGroup>(SpellFoundList, SpellPrefab); LocateCamera(); }
public void StartGame() { StartCanvas.SetActive(false); WSGameState.InitNewGame(); for (int i = 0; i < WSGameState.gridsize; i++) { for (int j = 0; j < WSGameState.gridsize; j++) { Transform lbi = NewTile(i, j); WSGameState.NewLetter(i, j, lbi); } } }
public void SubmitWord() { WSGameState.SubmitWord(); }