Exemplo n.º 1
0
    public void OnPointerClick(PointerEventData eventData)
    {
        WSGameState.LetterClick(I, J);
        AudioSource audio = GetComponent <AudioSource>();

        audio.Play();
    }
Exemplo n.º 2
0
    void SelectSpell(PointerEventData eventData)
    {
        SpellInfo si = Spells.FindSpell(eventData.pointerCurrentRaycast.gameObject.name);

        WSGameState.CastSpell(si);
        SpellCanvas.SetActive(false);
    }
Exemplo n.º 3
0
    // 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();
    }
Exemplo n.º 4
0
    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);
            }
        }
    }
Exemplo n.º 5
0
 public void SubmitWord()
 {
     WSGameState.SubmitWord();
 }