public static void ReplaceScripts() { if (EditorUtility.DisplayDialog("Scripts Converter", "Welcome to the Migration Tool for Mirror Networking. " + "This tool will convert your existing UNET code into the Mirror equivalent code.\n\nBefore we begin, we STRONGLY " + "recommend you take a full backup of your project as this tool is not perfect.\n\nWhile it does not attempt to " + "purposefully trash your network scripts, it could break your project. Be smart and BACKUP NOW.", "Yes, farewell UNET!", "Cancel")) { // User accepted the risks - go ahead! Scripts.ScriptsMigration(); // Cleanup after yourself. Scripts.Cleanup(); // Refresh the asset database, because sometimes Unity will be lazy about it. AssetDatabase.Refresh(); } }