// Start is called before the first frame update void Start() { //ClickNum = ClicksChanger2.ClickNum; ClickNum = 299995; // For debug ResourceNum = ClicksChanger2.ResourceNum; MoneyNum = ClicksChanger2.MoneyNum; AutoClick = ClicksChanger2.AutoClick; AutoConvert = ClicksChanger2.AutoConvert; AutoClickPrice = 35; CurrentMarketing = 0; CurrentExchange = 12; Clicks.text = "Paperplanes: " + ClickNum.ToString(); Resources.text = "Paper: " + ResourceNum.ToString(); Money.text = "Money: " + MoneyNum.ToString(); AutoClickNum.text = "AutoFolders: " + AutoClick.ToString(); AutoClickSec.text = "Fold/0.1s: " + (AutoClick * 10).ToString(); if (AutoConvert == 0) { AutoConvertON.text = "AutoConverter: OFF"; } else { AutoConvertON.text = "AutoConverter: ON"; } CurrentMarketingLev.text = "Marketing: Lv. " + CurrentMarketing.ToString(); CurrentExchangeRate.text = "Ratio: $10 : &" + CurrentExchange.ToString(); CurrentAutoClickPrice.text = "AutoFolder Price: &" + AutoClickPrice.ToString(); }
// Start is called before the first frame update void Start() { ClickNum = ClicksChanger3.ClickNum; ResourceNum = ClicksChanger3.ResourceNum; MoneyNum = ClicksChanger3.MoneyNum; AutoClick = ClicksChanger3.AutoClick; AutoConvert = ClicksChanger3.AutoConvert; CurrentMarketing = ClicksChanger3.CurrentMarketing; CurrentExchange = ClicksChanger3.CurrentExchange; AutoClickPrice = ClicksChanger3.AutoClickPrice; Clicks.text = "Paperplanes: " + ClickNum.ToString(); Resources.text = "Paper: " + ResourceNum.ToString(); Money.text = "Money: " + MoneyNum.ToString(); AutoClickNum.text = "AutoFolders: " + AutoClick.ToString(); AutoClickSec.text = "Fold/0.1s: " + (AutoClick * 10).ToString(); if (AutoConvert == 0) { AutoConvertON.text = "AutoConverter: OFF"; } else { AutoConvertON.text = "AutoConverter: ON"; } CurrentMarketingLev.text = "Marketing: Lv. " + CurrentMarketing.ToString(); CurrentExchangeRate.text = "Ratio: $10 : $" + CurrentExchange.ToString(); RemainingTime.text = "Time Left: " + minute.ToString() + " : " + second.ToString(); CurrentAutoClickPrice.text = "AutoFolder Price: &" + AutoClickPrice.ToString(); }
public void AutoClickPurchaseButton() { if (ResourceNum >= AutoClickPrice) { ResourceNum -= AutoClickPrice; AutoClick++; AutoClickNum.text = "AutoFolders: " + AutoClick.ToString(); AutoClickSec.text = "Fold/0.1s: " + (AutoClick * 10).ToString(); CurrentAutoClickPrice.text = "AutoFolder Price: &" + AutoClickPrice.ToString(); } }