public override void OnInspectorGUI() { this.DrawDefaultInspector(); GUILayout.Space(10); YCConfig myTarget = (YCConfig)this.target; if (GUILayout.Button("Import Config")) { myTarget.EditorImportConfig(); EditorUtility.SetDirty(myTarget); } GUILayout.Space(10); #if PUSH_NOTIFICATION if (GUILayout.Button("Disactivate Notification")) { myTarget.RemoveDefineSymbolsForGroup("PUSH_NOTIFICATION"); } #else if (GUILayout.Button("Activate Notification")) { myTarget.AddDefineSymbolsForGroup("PUSH_NOTIFICATION"); } #endif #if IN_APP_PURCHASING if (GUILayout.Button("Disactivate In App Purchases")) { myTarget.RemoveDefineSymbolsForGroup("IN_APP_PURCHASING"); } #else if (GUILayout.Button("Activate In App Purchases")) { myTarget.AddDefineSymbolsForGroup("IN_APP_PURCHASING"); } #endif #if FIREBASE if (GUILayout.Button("Disactivate Firebase")) { myTarget.RemoveDefineSymbolsForGroup("FIREBASE"); } #else if (GUILayout.Button("Activate Firebase")) { if (Directory.Exists("Assets/Firebase")) { myTarget.AddDefineSymbolsForGroup("FIREBASE"); } else { myTarget.DisplayDialog("Error", "This only for validate game.\nPlease import Firebase Analytics before.", "Ok"); } } #endif }
public override void OnInspectorGUI() { this.DrawDefaultInspector(); YCConfig myTarget = (YCConfig)this.target; if (GUILayout.Button("Import Config")) { myTarget.EditorImportConfig(); EditorUtility.SetDirty(myTarget); } }
public override void OnInspectorGUI() { this.DrawDefaultInspector(); YCConfig myTarget = (YCConfig)this.target; if (GUILayout.Button("Import Config")) { myTarget.EditorImportConfig(); EditorUtility.SetDirty(myTarget); } #if PUSH_NOTIFICATION if (GUILayout.Button("Disactivate Notification")) { myTarget.EditorToogleNotification(); } #else if (GUILayout.Button("Activate Notification")) { myTarget.EditorToogleNotification(); } #endif }