void Start()
    {
        camTransform       = Camera.main.transform;
        settingsButtons    = GetComponentsInChildren <Button> ();
        followAllongScript = GetComponentInParent <FolowAllong> ();

        //speedDisplay.text = (followAllongScript.scrollb.value/40f).ToString("P0");
    }
Esempio n. 2
0
    void Start()
    {
        scrollb       = GetComponentInChildren <Scrollbar>();
        scrollb.value = 0;


        folowAllong = GetComponent <FolowAllong> ();
        folowAllong.messageLength = cRTextSO.angry.text.Length;
        cRText     = GetComponentsInChildren <Text> (true);
        cRTextRect = cRText [0].gameObject.GetComponent <RectTransform> ();
    }
    void Start()
    {
        if (GameObject.FindWithTag("CRText") != null)
        {
            cRObject    = GameObject.FindWithTag("CRText").transform.GetChild(0).gameObject;
            folowAllong = cRObject.GetComponent <FolowAllong> ();
            folowAllong.messageLength = cRTextSO.angry.text.Length;


            cRText = cRObject.GetComponentsInChildren <Text> (true);

            cRTextRect = cRText [0].gameObject.GetComponent <RectTransform> ();
        }
    }