Esempio n. 1
0
    void Update()
    {
        if (first)
        {
            first = false;

            RefreshInventoryList();
            PlayerStats stats = PlayerStats.instance;

            if (!stats.hasActiveQuest)
            {
                //  PlayerStats.instance.SaveToFile(PlayerStats.instance.name);
            }
            else
            {
                quest = PlayerStats.instance.GetComponentInChildren <IQuest>();
                if (quest.IsQuestActive())
                {
                    SetNextReplica();
                }
            }
        }

        money.text = PlayerStats.instance.money.ToString();
    }
Esempio n. 2
0
 public void SetNextReplica()
 {
     if (quest.IsQuestActive())
     {
         questText.text         = quest.GetReplica();
         anwser1ButtonText.text = quest.GetAnwser(1);
         anwser2ButtonText.text = quest.GetAnwser(2);
         anwser3ButtonText.text = quest.GetAnwser(3);
     }
 }