void GetSettingsInformation(BGSDKSettings settings) { if (settings != null) { string message; EditorUtilities.ValidateSettingsModel(settings, out message); info = new BGSDKSettingsInfo() { value = new GUIContent(message) }; } }
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) }; } }