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

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

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