示例#1
0
 /// <summary>
 /// Set the highest education level already achieved by the user, if known, using the provided enum.
 /// </summary>
 public static void SetUserEducationLevel(EducationLevel educationLevel)
 {
     if (System.Enum.IsDefined(typeof(EducationLevel), educationLevel))
     {
         #if !UNITY_EDITOR && (UNITY_ANDROID || UNITY_IPHONE)
             #if UNITY_ANDROID
         HeyzapDemographicsAndroid.SetUserEducationLevel(educationLevel.ToString());
             #elif UNITY_IPHONE
         HeyzapDemographicsIOS.SetUserEducationLevel(educationLevel.ToString());
             #endif
         #else
         #endif
     }
 }
示例#2
0
 public void SetEducation(int newEducation)
 {
     education           = EducationList[newEducation];
     EducationLabel.text = "Education: " + education.ToString().ToLower();
 }