// Start is called before the first frame update void Start() { BaseSystem = GameObject.Find("BaseSystem"); ValueCall = BaseSystem.GetComponent <InGameValue>(); GoodsValueCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>().GetPlayerCompanyValue().GetGoodsValue().GetComponent <GoodsValue>(); GoodsRecipeCall = BaseSystem.GetComponent <GoodsRecipe>(); }
// Start is called before the first frame update void Awake() { CompanyManagerCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>(); CompanyValueCall = CompanyManagerCall.GetPlayerCompanyValue(); TechValueCall = CompanyValueCall.GetTechValue().GetComponent <TechValue>(); ValueCall = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); }
void Start() { ClickCheckerCall = GameObject.Find("BaseSystem").GetComponent <ClickChecker>(); ValueCall = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); TimeManagerCall = GameObject.Find("TimeManager").GetComponent <TimeManager>(); CompanyValueCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>().GetPlayerCompanyValue(); NewsPanelControllerCall = NewsPanel.GetComponent <NewsPanelController>(); PlayerCompanyName = CompanyValueCall.CompanyName; SidePanelManager(); FloatingPanelManager(); NewsPanelControllerCall.CallPanelController = this; AlertPopUpPanel.GetComponent <AlertPopUpPanelController>().CallPanelController = this; NoteToolTipPanel.GetComponent <NoteToolTipPanelController>().CallPanelController = this; NoteToolTipPanel.GetComponent <NoteToolTipPanelController>().CallNotificationManager = GameObject.Find("NotificationManager").GetComponent <NotificationManager>(); SetUIScale(); Scaling(); NewsPanelControllerCall.UpdateTimeText(); }
// Start is called before the first frame update void Start() { InGameValueCall = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); TimeManagerCall = GameObject.Find("TimeManager").GetComponent <TimeManager>(); PanelControllerCall = GameObject.Find("Canvas").GetComponent <PanelController>(); CompanyManagerCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>(); NotificationManagerCall = GameObject.Find("NotificationManager").GetComponent <NotificationManager>(); }
// Start is called before the first frame update void Start() { ValueCall = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); TimeManagerCall = GameObject.Find("TimeManager").GetComponent <TimeManager>(); CompanyManagerCall = transform.parent.parent.gameObject.GetComponent <CompanyManager>(); CompanyValueCall = transform.parent.gameObject.GetComponent <CompanyValue>(); EconomyValueCall = CompanyValueCall.GetEconomyValue().GetComponent <EconomyValue>(); PanelControllerCall = GameObject.Find("Canvas").GetComponent <PanelController>(); ActivatedLabor = 0; ActivatedRequiredLabor = 0; RotateTimeLimit = 200; RotateTimer = RotateTimeLimit; if (CompanyValueCall.CompanyName == CompanyManagerCall.PlayerCompanyName) { PanelControllerCall.UpdateFactoryInfo("Employee", TotalLabor, RequiredLabor); } }
// Start is called before the first frame update void Start() { isInstall = false; BaseSystem = GameObject.Find("BaseSystem"); ValueCall = BaseSystem.GetComponent <InGameValue>(); PanelControllerCall = GameObject.Find("Canvas").GetComponent <PanelController>(); ClickCheckerCall = BaseSystem.GetComponent <ClickChecker>(); GroupActivationCall = BaseSystem.GetComponent <GroupActivation>(); TimeManagerCall = GameObject.Find("TimeManager").GetComponent <TimeManager>(); EconomyValueCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>().GetPlayerCompanyValue().GetEconomyValue().GetComponent <EconomyValue>(); NotificationManagerCall = GameObject.Find("NotificationManager").GetComponent <NotificationManager>(); CompanyValueCall = GameObject.Find("CompanyManager").GetComponent <CompanyManager>().GetPlayerCompanyValue(); WorkSpeed = 1f; IsWorking = false; GetWholeStructObject(); GetOriginalStructColor(); CheckInstallCondition(); }
// Start is called before the first frame update void Start() { ValueCall = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); TimeManagerCall = GameObject.Find("TimeManager").GetComponent <TimeManager>(); CompanyManagerCall = transform.parent.parent.gameObject.GetComponent <CompanyManager>(); CompanyValueCall = transform.parent.gameObject.GetComponent <CompanyValue>(); PanelControllerCall = GameObject.Find("Canvas").GetComponent <PanelController>(); RealtimeIncome = 0; CurrentHistoryIndex = 0; PersistHistoryArray = new List <PersistHistory>(); AddNewMonthlyHistroy(); CalculateRealtimeIncome(); if (CompanyValueCall.CompanyName == CompanyManagerCall.PlayerCompanyName) { PanelControllerCall.UpdateFinanceInfo(RealtimeIncome, Balance); } }
// Start is called before the first frame update void Awake() { CallValue = GameObject.Find("BaseSystem").GetComponent <InGameValue>(); CallTechValue = GameObject.Find("CompanyManager").GetComponent <CompanyManager>().GetPlayerCompanyValue().GetTechValue().GetComponent <TechValue>(); CallObjInstantiater = GameObject.Find("ObjectInstaller").GetComponent <ObjInstantiater>(); }
// Start is called before the first frame update void Start() { //Debug.Log(NormalMask.value); ValueCall = this.GetComponent <InGameValue>(); GraphicRaycasterCall = GameObject.Find("Canvas").GetComponent <GraphicRaycaster>(); }