void Start() { _gameData = this.gameObject.GetComponentInParent <GameData> (); this.gameObject.transform.localPosition = new Vector3(-2000, 0, 0); _panelManager = this.gameObject.GetComponentInParent <PanelManager> (); _floating = GameObject.Find("FloatingSystem").GetComponent <FloatingActions> (); _achieveActions = this.gameObject.GetComponentInParent <AchieveActions> (); }
void Start() { _gameData = this.gameObject.GetComponent <GameData> (); _homeManager = this.gameObject.GetComponentInChildren <HomeManager> (); _warehouseActions = this.gameObject.GetComponentInChildren <WarehouseActions> (); _floating = this.gameObject.GetComponentInChildren <FloatingActions> (); _backpackActions = this.gameObject.GetComponentInChildren <BackpackActions> (); commonTipText = commonTipPanel.gameObject.GetComponentsInChildren <Text> (); commonTipButton = commonTipPanel.gameObject.GetComponentsInChildren <Button> (); buildTipText = buildTip.gameObject.GetComponentsInChildren <Text> (); buildTipButton = buildTip.gameObject.GetComponentsInChildren <Button> (); makingTipText = MakingTip.gameObject.GetComponentsInChildren <Text> (); makingTipButton = MakingTip.gameObject.GetComponentsInChildren <Button> (); techTipText = TechTip.gameObject.GetComponentsInChildren <Text> (); techTipButton = TechTip.gameObject.GetComponentsInChildren <Button> (); }
void Start() { _gameData = this.gameObject.GetComponentInParent <GameData> (); _floating = GameObject.Find("FloatingSystem").GetComponent <FloatingActions> (); }
void Start() { _gameData = GetComponent <GameData> (); _floating = GetComponentInChildren <FloatingActions> (); _log = GetComponentInChildren <LogManager> (); }