示例#1
0
 private void CreateActionsSection()
 {
     GUILayout.Space((float)this._sectionMarginSize);
     GUILayout.Label("Actions", Array.Empty <GUILayoutOption>());
     if (GUILayout.Button("Report App Open", Array.Empty <GUILayoutOption>()))
     {
         this.ClearStatusLabel();
         MoPubAndroid.ReportApplicationOpen(null);
     }
     if (GUILayout.Button("Enable Location Support", Array.Empty <GUILayoutOption>()))
     {
         this.ClearStatusLabel();
         MoPubAndroid.EnableLocationSupport(true);
     }
 }
示例#2
0
 private void CreateActionsSection()
 {
     GUILayout.Space((float)this._sectionMarginSize);
     GUILayout.Label("Actions", new GUILayoutOption[0]);
     if (GUILayout.Button("Report App Open", new GUILayoutOption[0]))
     {
         this._status = string.Empty;
         MoPubAndroid.ReportApplicationOpen(null);
     }
     if (!GUILayout.Button("Enable Location Support", new GUILayoutOption[0]))
     {
         return;
     }
     this._status = string.Empty;
     MoPubAndroid.EnableLocationSupport(true);
 }