public void UpdateText() { string tempString = "$" + GameManager.instance.mTotalMoney.ToString(); mMoneyTextObject.GetComponent <Text>().text = (tempString); mSwatterUpgradePrice.GetComponent <Text>().text = ("$" + mSwatterPrice.ToString()); int currentDay = GameManager.instance.mCurrentDay; int currentSeason = GameManager.instance.mCurrentSeason; //int currentDay = previousDay + 1; //if (previousDay >= 5) //{ // currentSeason++; // currentDay = 0; //} LevelManager.Day day = GameManager.instance.mLevelManager.mSeasons[currentSeason].mDays[currentDay]; string weatherReport = day.mWeatherReport; mNextDayWeatherReport.GetComponent <Text>().text = "Tomorrows Forecast:\n" + weatherReport; }
public void NextLevel() { Debug.Log("Starting game"); mStartedGame = true; mLevelManager.OnNewLevel(); if (!mUsingSwatter) { GameObject.FindGameObjectWithTag("Swatter").GetComponent <Swatter>().ChangeToSwatter(); } mShop.SetActive(false); mInShop = false; LevelManager.Day currentDay = mLevelManager.mSeasons[mCurrentSeason].mDays[mCurrentDay]; mCurrentDayStats = currentDay; mFlowerScript.LoadLevelSettings(currentDay.mFoodMultiplier, currentDay.mWaterMultiplier, currentDay.mTemperatureMultiplier); mCurrentDay++; if (mCurrentDay >= 5) { mCurrentSeason++; mCurrentDay = 0; } mBetweenLevels = false; }