internal static void ImportPackageImmediately(string packagePath)
{
string str;
bool flag;
if (string.IsNullOrEmpty(packagePath))
{
throw new ArgumentException("Path can not be empty or null", "packagePath");
}
ImportPackageItem[] items = PackageUtility.ExtractAndPrepareAssetList(packagePath, out str, out flag);
if ((items != null) && (items.Length != 0))
{
PackageUtility.ImportPackageAssetsImmediately(Path.GetFileNameWithoutExtension(packagePath), items, false);
}
}