protected override void Initialize() { string enumString = GetArgumentValue("id"); if (Enum.TryParse(enumString, true, out TextAvatarAnimatorComponent.Avatars avatar)) { avatarArg = avatar; } else { throw new StyleValidationException($"Unable to {enumString} as an Avatar enum value"); } base.Initialize(); }
public void SetAvatar(TextAvatarAnimatorComponent.Avatars avatar) { textAvatarAnimatorComponent.Avatar = avatar; }