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(); }
public void CollectButton() { int maxcoat = GMScript.ShowValues("maxCoat"); GMScript.ChangeValues("coatMinus", maxcoat); int plusGold = GMScript.ShowValues("plusGold"); GMScript.ChangeValues("gold", plusGold); HidePanel(); }
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); } }
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); } }