Esempio n. 1
0
        /// <summary>
        /// Set your user's gender.
        /// </summary>
        /// <param name="gender">
        /// Reported gender of user. Allowable values are 'm' or 'c' 'f'
        /// </param>
        public void LogUserGender(UserGender gender)
        {
#if UNITY_EDITOR
#elif UNITY_IOS
            FlurryIOS.SetGender(gender == UserGender.Male ? "m" : gender == UserGender.Female ? "f" : "c");
#elif UNITY_ANDROID
            FlurryAndroid.SetGender((byte)(gender == UserGender.Male ? 1 : gender == UserGender.Female ? 0 : -1));
#endif
        }
Esempio n. 2
0
 public void LogUserGender(UserGender gender)
 {
     FlurryAndroid.SetGender((gender != UserGender.Male) ? ((gender != UserGender.Female) ? ((byte)(-1)) : ((byte)0)) : ((byte)1));
 }