Esempio n. 1
0
    float UpdateRate;              //刷新频率

    private void Start()
    {
        Text text = this.gameObject.GetComponentInChildren <Text>();

        TextLenth  = GlobalVariable.CalculateLengthOfText(text.text, text);
        LineTrans  = Line.gameObject.GetComponent <RectTransform>();
        UpdateRate = 1.0f / AnimationFrames;

        EventTriggerListener.Get(this.gameObject).OnPtEnter += Hover;
        EventTriggerListener.Get(this.gameObject).OnPtExit  += Exit;

        Line.gameObject.SetActive(false);
    }