示例#1
0
        void GetSettingsInformation(BGSDKSettings settings)
        {
            if (settings != null)
            {
                string message;
                EditorUtilities.ValidateSettingsModel(settings, out message);

                info = new BGSDKSettingsInfo()
                {
                    value = new GUIContent(message)
                };
            }
        }
示例#2
0
        void GetSettingsInformation(Token token)
        {
            if (token != null)
            {
                string message = "No errors";

                if (token.contract == null)
                {
                    message = "No contract set:\ntokens must have a referenced contract.";
                }
                else if (!token.contract.tokens.Contains(token))
                {
                    message = "Orphan:\nthe contract's tokens field should reference this token.";
                }

                info = new BGSDKSettingsInfo()
                {
                    value = new GUIContent(message)
                };
            }
        }