Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        market = GameObject.FindGameObjectWithTag("GameLogic").GetComponent<Market>();
        mainGame = GameObject.FindGameObjectWithTag("GameLogic").GetComponent<WeedGame>();

        if(createdFromLoad)
        {
        }
        else
        {
            weedPerUpdate = weedPerUpdateDefault;
            totalWeedFarmed = 0;
        }

        market.modifyResiduleIncome(weedPerUpdate);
    }