private int GetInitialVertexToColorize(EasyFontTextMesh.TEXT_COMPONENT _textComponent) { if (this.textChars == null) { this.textChars = this._privateProperties.text.ToCharArray(); } int num = 0; switch (_textComponent) { case EasyFontTextMesh.TEXT_COMPONENT.Main: if (this._privateProperties.enableShadow && this._privateProperties.enableOutline) { num = 5; } else if (this._privateProperties.enableOutline) { num = 4; } else if (this._privateProperties.enableShadow) { num = 1; } break; case EasyFontTextMesh.TEXT_COMPONENT.Shadow: num = 0; break; case EasyFontTextMesh.TEXT_COMPONENT.Outline: num = 1; break; } return(this.textChars.Length * 4 * num); }
private int GetFinalVertexToColorize(EasyFontTextMesh.TEXT_COMPONENT _textComponent) { if (this.textChars == null) { this.textChars = this._privateProperties.text.ToCharArray(); } int result = 0; int num = 0; switch (_textComponent) { case EasyFontTextMesh.TEXT_COMPONENT.Main: if (this._privateProperties.enableShadow && this._privateProperties.enableOutline) { num = 6; } else if (this._privateProperties.enableOutline) { num = 5; } else if (this._privateProperties.enableShadow) { num = 2; } result = this.textChars.Length * 4 * num; break; case EasyFontTextMesh.TEXT_COMPONENT.Shadow: result = this.textChars.Length * 4; break; case EasyFontTextMesh.TEXT_COMPONENT.Outline: if (this._privateProperties.enableShadow) { num = 2; } else { num = 1; } result = this.textChars.Length * 4 * (num + 4); break; } return(result); }