Exemple #1
0
        /// <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);
        }
Exemple #2
0
 public string getCorrectTextValue(TextVariant textVariant)
 {
     return(PlayerPrefs.GetString(textVariant.referenceTrait));
 }
Exemple #3
0
 public string getCorrectTextVariant(TextVariant textVariant)
 {
     return(textVariant.outcomes[PlayerPrefs.GetInt(textVariant.referenceTrait)]);
 }