public void TextAniSetting(Label text, UILabelStepByStepAniInfo aniInfo)
    {
        if (this.IsNull(text))
        {
            return;
        }
        UILabelStepByStepAni uILabelStepByStepAni = text.transform.gameObject.AddComponent <UILabelStepByStepAni>();

        uILabelStepByStepAni._loopTime              = aniInfo.loopTime;
        uILabelStepByStepAni._loopInterval          = aniInfo.loopInterval;
        uILabelStepByStepAni._nextValueStopInterval = aniInfo.nextValueStopInterval;
        uILabelStepByStepAni._reverse          = aniInfo.reverse;
        uILabelStepByStepAni._changePartUpdate = aniInfo.changePartUpdate;
        uILabelStepByStepAni._useComma         = aniInfo.useComma;
    }
Exemplo n.º 2
0
    private void TextAniSetting(Label text, float loopTime, float loopInterval, float nextValueStopInterval, bool reverse, bool changePartUpdate, bool useComma)
    {
        if (text == null)
        {
            return;
        }
        UILabelStepByStepAniInfo aniInfo = default(UILabelStepByStepAniInfo);

        aniInfo.loopTime              = loopTime;
        aniInfo.loopInterval          = loopInterval;
        aniInfo.nextValueStopInterval = nextValueStopInterval;
        aniInfo.reverse          = reverse;
        aniInfo.changePartUpdate = changePartUpdate;
        aniInfo.useComma         = useComma;
        NrTSingleton <UILabelAnimationManager> .Instance.TextAniSetting(text, aniInfo);
    }