if(window.myGraph!=null&&window.myGraph.ServerAndLocalDifferent()&&EditorUtility.DisplayDialog("Saving node positions","The World Graph has been modified. \nWould you like to push the modifications to the server ?","Yes","No"))
if(window.myGraph!=null)
{
{
window.myGraph.SaveInServer();
if(window.myGraph.ServerAndLocalDifferent()&&EditorUtility.DisplayDialog("Saving node positions","The World Graph has been modified. \nWould you like to push the modifications to the server ?","Yes","No"))