//Use this for initialization. void Start() { //Get RectTransform component of this game object. rectTransform = gameObject.GetComponent <RectTransform>(); //Assign value of border game object and its script. border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); }
void Start() { //Fill in reference for Border game object. border = GameObject.Find("Border"); scriptBorder = border.GetComponent<ScriptBorder>(); //Take reference to this game object Image component. rectTransform = gameObject.GetComponent<RectTransform>(); }
//Use this for initialization. void Start() { //Get RectTransform component of this game object. rectTransform = gameObject.GetComponent<RectTransform>(); //Assign value of border game object and its script. border = GameObject.Find("Border"); scriptBorder = border.GetComponent<ScriptBorder>(); }
void Start() { //Fill in reference for Border game object. border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); //Take reference to this game object Image component. rectTransform = gameObject.GetComponent <RectTransform>(); }
void Start() { //Get the reference from this game object RectTransform component. rectTransform = gameObject.GetComponent <RectTransform>(); //Assign value of border game object and its script. border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); //Panel notification. panelNotification = GameObject.Find("PanelNotification"); scriptPanelNotification = panelNotification.GetComponent <ScriptPanelNotification>(); }
void Start() { image = gameObject.GetComponent<Image>(); rt = gameObject.GetComponent<RectTransform>(); childTextClickToDismiss = gameObject.transform.Find("TextClickToDismiss"); childTextClickToDismissText = childTextClickToDismiss.gameObject.GetComponent<Text>(); panelScrollShowCards = gameObject.transform.Find("PanelScrollShowCards"); panelScrollShowCardsImage = panelScrollShowCards.gameObject.GetComponent<Image>(); panelContentShowCards = panelScrollShowCards.Find("PanelContentShowCards"); panelContentShowCardsImage = panelContentShowCards.gameObject.GetComponent<Image>(); border = GameObject.Find("Border"); scriptBorder = border.GetComponent<ScriptBorder>(); }
void Start() { image = gameObject.GetComponent <Image>(); rt = gameObject.GetComponent <RectTransform>(); childTextClickToDismiss = gameObject.transform.Find("TextClickToDismiss"); childTextClickToDismissText = childTextClickToDismiss.gameObject.GetComponent <Text>(); panelScrollShowCards = gameObject.transform.Find("PanelScrollShowCards"); panelScrollShowCardsImage = panelScrollShowCards.gameObject.GetComponent <Image>(); panelContentShowCards = panelScrollShowCards.Find("PanelContentShowCards"); panelContentShowCardsImage = panelContentShowCards.gameObject.GetComponent <Image>(); border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); }
void Start() { //Assign RectTransform for this game object. rt = gameObject.GetComponent <RectTransform>(); //Assign reference to text component of child. text = gameObject.transform.Find("Text"); textText = text.gameObject.GetComponent <Text>(); //Assign reference to Border game object. border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); //Assign button reset. buttonReset = GameObject.Find("ButtonReset"); buttonResetRT = buttonReset.GetComponent <RectTransform>(); //Put the first initial text in textHolder variable. textHolder = textText.text; textHolderPrevious = textHolder; }
void Start() { //Assign RectTransform for this game object. rt = gameObject.GetComponent<RectTransform>(); //Assign reference to text component of child. text = gameObject.transform.Find("Text"); textText = text.gameObject.GetComponent<Text>(); //Assign reference to Border game object. border = GameObject.Find("Border"); scriptBorder = border.GetComponent<ScriptBorder>(); //Assign button reset. buttonReset = GameObject.Find("ButtonReset"); buttonResetRT = buttonReset.GetComponent<RectTransform>(); //Put the first initial text in textHolder variable. textHolder = textText.text; textHolderPrevious = textHolder; }
void Start() { /* Get the reference from the RectTransform component within this game object. */ rectTransform = gameObject.GetComponent<RectTransform>(); //Get reference from a GridLayoutGroup from this game object. gridLayoutGroup = gameObject.GetComponent<GridLayoutGroup>(); //Assign value of border game object and its script. border = GameObject.Find("Border"); scriptBorder = border.GetComponent<ScriptBorder>(); //Assign value to the panelLog and scriptPanelLog. panelLog = GameObject.Find("PanelLog"); scriptPanelLog = panelLog.GetComponent<ScriptPanelLog>(); //Assign value to player and scriptPlayer,. player = GameObject.Find("Player"); scriptPlayer = player.GetComponent<ScriptPlayer>(); }
void Start() { /* * Get the reference from the RectTransform component within this * game object. */ rectTransform = gameObject.GetComponent <RectTransform>(); //Get reference from a GridLayoutGroup from this game object. gridLayoutGroup = gameObject.GetComponent <GridLayoutGroup>(); //Assign value of border game object and its script. border = GameObject.Find("Border"); scriptBorder = border.GetComponent <ScriptBorder>(); //Assign value to the panelLog and scriptPanelLog. panelLog = GameObject.Find("PanelLog"); scriptPanelLog = panelLog.GetComponent <ScriptPanelLog>(); //Assign value to player and scriptPlayer,. player = GameObject.Find("Player"); scriptPlayer = player.GetComponent <ScriptPlayer>(); }