public void TextUpdateAndPlayAni(Label text, string targetText)
    {
        if (!this.IsStepByStepAniSetting(text))
        {
            return;
        }
        UILabelStepByStepAni component = text.transform.gameObject.GetComponent <UILabelStepByStepAni>();

        component.Clear();
        text.SetText(targetText);
    }
Ejemplo n.º 2
0
    private void TextUpdateAndPlayAni(Label text, string damage)
    {
        UILabelStepByStepAni component = text.GetComponent <UILabelStepByStepAni>();

        if (component == null)
        {
            Debug.LogError("ERROR, Battle_MythRaidBattleInfo_DLG.cs, TextUpdateAndPlayAni(), textAni is Null");
            return;
        }
        component.Clear();
        text.SetText(damage);
    }