Ejemplo n.º 1
0
    public void UpMaxArrow()
    {
        if (coin >= upCostMaxArrow)
        {
            lm.SetCoin(lm.GetCoin() - upCostMaxArrow);
            coin          = lm.GetCoin();
            coinText.text = coin.ToString();

            lm.SetMaxArrow(lm.GetMaxArrow() + 1);
            maxArrowText.text = lm.GetMaxArrow().ToString();
        }
    }
Ejemplo n.º 2
0
    public void ClaimReward()
    {
        CombatAgent.Instance.OnBattleDone();

        LegacyManager lm = new LegacyManager();

        lm.SetCoin(lm.GetCoin() + reward);

        GetComponent <SceneLoader>().RemoveScene("Combat Chapter 1");
    }