/// <summary> /// Освободить все используемые ресурсы. /// </summary> /// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param> protected override void Dispose(bool disposing) { foreach (var component in VariantNumber) { component.Dispose(); } VariantNumber.Clear(); foreach (var component in TextVariant) { component.Dispose(); } TextVariant.Clear(); foreach (var component in DeleteVariant) { component.Dispose(); } DeleteVariant.Clear(); foreach (var component in CorrectVariantMulti) { component.Dispose(); } CorrectVariantMulti.Clear(); if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); }
public string getCorrectTextValue(TextVariant textVariant) { return(PlayerPrefs.GetString(textVariant.referenceTrait)); }
public string getCorrectTextVariant(TextVariant textVariant) { return(textVariant.outcomes[PlayerPrefs.GetInt(textVariant.referenceTrait)]); }