using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Gold : MonoBehaviour
{
public static int goldObtained = 0;
public TMP_Text textNoCollected;
public int goldAmount;
{
ShopManagerScript.goldObtained += goldAmount;
textNoCollected.text = "Gold : " + ShopManagerScript.goldObtained;
if (ShopManagerScript.crops >= 0;)
{
!ShopManagerScript.goldObtained += goldAmount;
}
}
// Update is called once per frame
void Update()
{
}
}
The rest of the code works but the !add gold.