public void TextUpdateAndPlayAni(Label text, string targetText) { if (!this.IsStepByStepAniSetting(text)) { return; } UILabelStepByStepAni component = text.transform.gameObject.GetComponent <UILabelStepByStepAni>(); component.Clear(); text.SetText(targetText); }
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); }
public void PrevDataDelete(Label text) { if (this.IsNull(text)) { return; } UILabelStepByStepAni component = text.transform.gameObject.GetComponent <UILabelStepByStepAni>(); if (component == null) { return; } component.PrevValueDelete(); }
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; }
private bool IsStepByStepAniSetting(Label text) { if (text == null) { Debug.LogError("ERROR, UILabelAnimationManager.cs, IsStepByStepAniSetting(), text is Null"); return(false); } UILabelStepByStepAni component = text.GetComponent <UILabelStepByStepAni>(); if (component == null) { Debug.LogError("ERROR, UILabelAnimationManager.cs, IsNoProblem(), textAni is Null"); return(false); } return(true); }
private void TextAniSetting(Label text) { if (text == null) { Debug.LogError("ERROR, Battle_MythRaidBattleInfo_DLG.cs, TextAniSetting(), text is Null"); return; } UILabelStepByStepAni uILabelStepByStepAni = text.transform.gameObject.AddComponent <UILabelStepByStepAni>(); uILabelStepByStepAni._loopTime = -1f; uILabelStepByStepAni._loopInterval = 0.01f; uILabelStepByStepAni._nextValueStopInterval = 0.5f; uILabelStepByStepAni._reverse = true; uILabelStepByStepAni._changePartUpdate = true; uILabelStepByStepAni._useComma = true; }