//Use this for initialization.
 void Start()
 {
     /*
      * These code below mostly to get reference to this game object component or
      *      this game object's child component.
      * Get this game object Image and RectTransform component.
      */
     image         = gameObject.GetComponent <Image>();
     rectTransform = gameObject.GetComponent <RectTransform>();
     //Fill in childPanelScrollTextLog and take its Image component.
     childPanelScrollTextLog      = gameObject.transform.Find("PanelScrollTextLog");
     childPanelScrollTextLogImage = childPanelScrollTextLog.gameObject.GetComponent <Image>();
     //Get the childTextClickToDismiss game object.
     childTextClickToDismiss = gameObject.transform.Find("TextClickToDismiss");
     //Get childTextClickToDismiss's text component.
     childTextClickToDismissText = childTextClickToDismiss.gameObject.GetComponent <Text>();
     //Get the childTextLog game object and its text component.
     childTextLog     = gameObject.transform.Find("PanelScrollTextLog").Find("TextLog");
     childTextLogText = childTextLog.gameObject.GetComponent <Text>();
     //Put reference to exhibitionDatabase.
     exhibitionDatabase       = GameObject.Find("ExhibitionDatabase");
     scriptExhibitionDatabase = exhibitionDatabase.GetComponent <ScriptExhibitionDatabase>();
     //Panel content show cards.
     panelContentShowCards       = GameObject.Find("PanelContentShowCards");
     scriptPanelContentShowCards = panelContentShowCards.GetComponent <ScriptPanelContentShowCards>();
     //Assign value to panelNotification.
     panelNotification       = GameObject.Find("PanelNotification");
     scriptPanelNotification = panelNotification.GetComponent <ScriptPanelNotification>();
 }
 //Use this for initialization.
 void Start()
 {
     /*
     These code below mostly to get reference to this game object component or
         this game object's child component.
     Get this game object Image and RectTransform component.
     */
     image = gameObject.GetComponent<Image>();
     rectTransform = gameObject.GetComponent<RectTransform>();
     //Fill in childPanelScrollTextLog and take its Image component.
     childPanelScrollTextLog = gameObject.transform.Find("PanelScrollTextLog");
     childPanelScrollTextLogImage = childPanelScrollTextLog.gameObject.GetComponent<Image>();
     //Get the childTextClickToDismiss game object.
     childTextClickToDismiss = gameObject.transform.Find("TextClickToDismiss");
     //Get childTextClickToDismiss's text component.
     childTextClickToDismissText = childTextClickToDismiss.gameObject.GetComponent<Text>();
     //Get the childTextLog game object and its text component.
     childTextLog = gameObject.transform.Find("PanelScrollTextLog").Find("TextLog");
     childTextLogText = childTextLog.gameObject.GetComponent<Text>();
     //Put reference to exhibitionDatabase.
     exhibitionDatabase = GameObject.Find("ExhibitionDatabase");
     scriptExhibitionDatabase = exhibitionDatabase.GetComponent<ScriptExhibitionDatabase>();
     //Panel content show cards.
     panelContentShowCards = GameObject.Find("PanelContentShowCards");
     scriptPanelContentShowCards = panelContentShowCards.GetComponent<ScriptPanelContentShowCards>();
     //Assign value to panelNotification.
     panelNotification = GameObject.Find("PanelNotification");
     scriptPanelNotification = panelNotification.GetComponent<ScriptPanelNotification>();
 }