Пример #1
0
        private static Color32 GetTrustLevelColor(VRC.Core.APIUser user)
        {
#if VRC_CLIENT
            Color32 color = new Color32(255, 255, 255, 255);
            if (user == null)
            {
                return(color);
            }

            color = VRCPlayer.GetDisplayColorForSocialRank(user);
            return(color);
#else
            // we are in sdk, this is not meaningful anyway
            return((Color32)Color.grey);
#endif
        }