Fixed some bugs

This commit is contained in:
Perfare
2017-02-16 15:30:11 +08:00
parent 16ed347a30
commit 332e4cc6e2
5 changed files with 208 additions and 194 deletions

View File

@ -1336,7 +1336,7 @@ namespace Unity_Studio
}
break;
case 48:
if (!ExportFileExists(exportpath + asset.Text + asset.extension, asset.TypeString))
if (!ExportFileExists(exportpath + asset.Text + asset.extension))
{
ExportShader(new Shader(asset, true), exportpath + asset.Text + ".txt");
exportedCount++;
@ -1344,7 +1344,7 @@ namespace Unity_Studio
break;
case 49:
TextAsset m_TextAsset = new TextAsset(asset, true);
if (!ExportFileExists(exportpath + asset.Text + asset.extension, asset.TypeString))
if (!ExportFileExists(exportpath + asset.Text + asset.extension))
{
ExportText(m_TextAsset, exportpath + asset.Text + asset.extension);
exportedCount++;
@ -1352,7 +1352,7 @@ namespace Unity_Studio
break;
case 114:
MonoBehaviour m_MonoBehaviour = new MonoBehaviour(asset, true);
if (!ExportFileExists(exportpath + asset.Text + asset.extension, asset.TypeString))
if (!ExportFileExists(exportpath + asset.Text + asset.extension))
{
ExportMonoBehaviour(m_MonoBehaviour, exportpath + asset.Text + asset.extension);
exportedCount++;
@ -1360,14 +1360,14 @@ namespace Unity_Studio
break;
case 128:
unityFont m_Font = new unityFont(asset, true);
if (!ExportFileExists(exportpath + asset.Text + asset.extension, asset.TypeString))
if (!ExportFileExists(exportpath + asset.Text + asset.extension))
{
ExportFont(m_Font, exportpath + asset.Text + asset.extension);
exportedCount++;
}
break;
default:
if (!ExportFileExists(exportpath + asset.Text + asset.extension, asset.TypeString))
if (!ExportFileExists(exportpath + asset.Text + asset.extension))
{
ExportRawFile(asset, exportpath + asset.Text + asset.extension);
exportedCount++;