示例#1
0
    public void TakeText()
    {
        string maxCoat  = GMScript.ShowValues("maxCoat").ToString();
        string plusGold = GMScript.ShowValues("plusGold").ToString();

        coalValueText.text = maxCoat;
        goldValueText.text = plusGold;
        plusGoldText.text  = plusGold;

        ShowPanel();
    }
示例#2
0
    public void CollectButton()
    {
        int maxcoat = GMScript.ShowValues("maxCoat");

        GMScript.ChangeValues("coatMinus", maxcoat);

        int plusGold = GMScript.ShowValues("plusGold");

        GMScript.ChangeValues("gold", plusGold);

        HidePanel();
    }
示例#3
0
    private void RestoreGold()
    {
        Debug.Log(currentTarget);
        if (GMScript != null)
        {
            if (currentTarget != null)
            {
                currentTarget.GetComponent <AdComponentAsteroid>().HidePanel();
            }

            int maxVal = GMScript.ShowValues("maxGold");
            GMScript.ChangeValues("gold", maxVal);
        }
    }
示例#4
0
    private void ChangeButt()
    {
        Debug.Log(currentTarget);
        if (GMScript != null)
        {
            if (currentTarget != null)
            {
                currentTarget.GetComponent <AdComponent>().HidePanel();
            }

            int maxVal = GMScript.ShowValues("maxCoat");
            GMScript.ChangeValues("coatMinus", maxVal);

            int plusGold = GMScript.ShowValues("plusGold");
            GMScript.ChangeValues("gold", plusGold * 2);
        }
    }