Skip to content

Commit

Permalink
* Modified to put log after finishing script file generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsama committed Aug 9, 2016
1 parent 013acac commit f0e0825
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Assets/QuickSheet/GDataPlugin/Editor/GoogleMachineEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ public override void OnInspectorGUI()

if (GUILayout.Button("Generate"))
{
if (Generate(this.machine) == null)
Debug.LogError("Failed to create a script from Google.");
if (Generate(this.machine) != null)
Debug.Log("Successfully generated!");
else
Debug.LogError("Failed to create a script from Google Spreadsheet.");
}
}

Expand Down

0 comments on commit f0e0825

Please sign in to comment.