public override void OnEnter() { if (GenderAsString.Value.Equals("male", StringComparison.InvariantCultureIgnoreCase) ) { Gender = GA_Setup.GAGender.Male; } else if (GenderAsString.Value.Equals("female", StringComparison.InvariantCultureIgnoreCase) ) { Gender = GA_Setup.GAGender.Female; } GA_Setup.SetGender(Gender); Finish(); }
public override void OnEnter() { if (GenderAsString.Value.Equals("male", StringComparison.InvariantCultureIgnoreCase)) { Gender = GA_Setup.GAGender.Male; } else if (GenderAsString.Value.Equals("female", StringComparison.InvariantCultureIgnoreCase)) { Gender = GA_Setup.GAGender.Female; } GA_Setup.SetGender(Gender); Finish(); }
public override void Reset() { Gender = GA_Setup.GAGender.Male; }
/// <summary> /// Set user gender. /// </summary> /// <param name="gender">Gender of user (Persists cross session).</param> public static void SetGender(GA_Setup.GAGender gender) { GA_Setup.SetGender(gender); }