示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        banknotesMade = 0;
        totalIncome   = 0;

        moneyCounter = MoneyCounter.instance;
        shopScript   = BuildingItems.instance;
        timerScript  = Timer.instance;

        Update();
    }
示例#2
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(gameObject);
        }
        else
        {
            instance = this;
        }

        shellenProductions = new int[] { 0, 1, 5, 10, 50, 100 };
        numBuildings       = new int[shellenProductions.Length];
    }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     shopScript   = shopObject.GetComponent <BuildingItems>();
     moneyCounter = moneyCountObject.GetComponent <MoneyCounter>();
     buttonText   = buttonTextObject.GetComponent <TextMeshProUGUI>();
 }