Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.8 kB
2
Indexable
Never
shownText = shownText + text[i];
            if(addEndColorTag) {
                if(IsGeneDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color></color>";
                }else if(IsArtDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsBadgeDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsBarkeepDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsUnklebossDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(MurderscoutInForestStart || MurderscoutInSpoodRoom) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color></color>";
                }
            }else {
                if(IsGeneDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsArtDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsBadgeDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsBarkeepDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(IsUnklebossDialoge) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else if(MurderscoutInForestStart || MurderscoutInSpoodRoom) {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }else {
                    MainText.text = "<color=#cf83ff>"+shownText+"</color>";
                }
            }
            i++;
            if(i == text.Length) {
                _isAnimatingText = false;
            }
            yield return new WaitForSeconds(TextAnimateSpeed);
        }
        if(IsGeneDialoge) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else if(IsArtDialoge) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else if(IsBadgeDialoge) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else if(IsBarkeepDialoge) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else if(IsUnklebossDialoge) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else if(MurderscoutInForestStart || MurderscoutInSpoodRoom) {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }else {
            MainText.text = "<color=#cf83ff>"+shownText+"</color>";
        }