Ejemplo n.º 1
0
    void Update()
    {
        HealthScript character = player.GetComponent <HealthScript>();

        Mana.GetComponent <Text>().text = character.currentMana.ToString();
        WatchForInputs();
        HighlightSelected();
        if (character.health <= 0)
        {
            Reset();
            character.health      = character.maxhealth;
            character.currentMana = character.maxMana;
            ClearCardList();

            sceneFC.NextSequence();
            Destroy(GameObject.FindGameObjectWithTag("Board"));
        }

        if (Input.GetKeyDown(playCard))
        {
            ParseCards();
        }
    }
Ejemplo n.º 2
0
 //Ends current dialogue display
 public void EndDialogue()
 {
     Reset();
     dialogueUI.SetActive(false);
     sceneFC.NextSequence();
 }