Example #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);
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     mainGame = GameLogicGameObject.GetComponent<WeedGame>();
     globalPrefabs = GameLogicGameObject.GetComponent<GlobalPrefabs>();
 }
 // Use this for initialization
 void Start()
 {
     weedGame = GameObject.FindGameObjectWithTag("GameLogic").GetComponent<WeedGame>();
 }