Esempio n. 1
0
        static NetworkIdentityInfo GetBoolean(string name, bool value)
        {
            NetworkIdentityInfo info = new NetworkIdentityInfo();

            info.name  = new GUIContent(name);
            info.value = new GUIContent((value ? "Yes" : "No"));
            return(info);
        }
Esempio n. 2
0
        static NetworkIdentityInfo GetString(string name, string value)
        {
            NetworkIdentityInfo info = new NetworkIdentityInfo();

            info.name  = new GUIContent(name);
            info.value = new GUIContent(value);
            return(info);
        }
        static NetworkIdentityInfo GetBoolean(string name, bool value)
        {
            var info = new NetworkIdentityInfo
            {
                Name  = new GUIContent(name),
                Value = new GUIContent((value ? "Yes" : "No"))
            };

            return(info);
        }
        static NetworkIdentityInfo GetString(string name, string value)
        {
            var info = new NetworkIdentityInfo
            {
                Name  = new GUIContent(name),
                Value = new GUIContent(value)
            };

            return(info);
        }