static void OnPostprocessAllAssets( string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromPath) { if (!FourUtil.IsRunning) { return; } string strAllImportedAssets = ""; foreach (string assetPath in importedAssets) { strAllImportedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath); } P4VAdd(strAllImportedAssets); P4VCheckout(strAllImportedAssets); string strAllDeletedAssets = ""; foreach (string assetPath in deletedAssets) { strAllDeletedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath); } P4VDelete(strAllDeletedAssets); /* * string strAllMovedAssets = ""; * foreach (string assetPath in movedAssets) * { * strAllMovedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath); * } * P4VAdd(strAllImportedAssets); */ }
static void Init() { FourUtil m_MainWindow = EditorWindow.GetWindow(typeof(FourUtil)) as FourUtil; if (m_MainWindow != null) { } }