// Use this for initialization void Start() { timeProgressbar = GameObject.Find ("TimeProgressbar").GetComponent<Progressbar> (); timeProgressbar.Max = 100; textOnProgressBar = GameObject.FindGameObjectWithTag ("TextOnProgressBar").GetComponent<Text> (); textBelowProgressBar=GameObject.FindGameObjectWithTag ("TextbelowProgressBar").GetComponent<Text> (); moneyText = GameObject.FindGameObjectWithTag ("MoneyText").GetComponent<Text> (); UIdataScript = GameObject.Find ("ScriptContainer").GetComponent<UIdataImporter> (); moneyCanEarnPerDayText = GameObject.FindGameObjectWithTag ("MoneyEarnPerDayText").GetComponent<Text> (); timeIncreasingText = GameObject.Find ("IncreasingSpeedText").GetComponent<Text> (); // timeProgressbar.Value = 10; }
// Use this for initialization void Start() { gameInformationScript = GameObject.Find ("ScriptContainer").GetComponent<GameInformation> (); textOnStartTimeBtn = GameObject.FindGameObjectWithTag ("TimeStartButton").GetComponent<Text> (); UIDataScript = GameObject.Find ("ScriptContainer").GetComponent<UIdataImporter>(); textOnBuyLandBtn = GameObject.FindGameObjectWithTag ("TextOnBuyLandBtn").GetComponent<Text> (); dataReaderScript = GameObject.Find ("ScriptContainer").GetComponent<DataReader> (); inputFiledAtComboBox = GameObject.FindGameObjectWithTag ("inputFiledAtComboBox").GetComponent<InputField> (); buyLandButton = GameObject.Find ("BuyLandBtn").GetComponent<Button> (); }