基础内容
必要插件安装 缓动曲线和动画基础 ElementFolder,Track与其次级模块,PathNode重构
This commit is contained in:
34
Assets/I2/Localization/Scripts/Google/TranslationJob.cs
Normal file
34
Assets/I2/Localization/Scripts/Google/TranslationJob.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
namespace I2.Loc
|
||||
{
|
||||
using TranslationDictionary = Dictionary<string, TranslationQuery>;
|
||||
|
||||
|
||||
public class TranslationJob : IDisposable
|
||||
{
|
||||
public eJobState mJobState = eJobState.Running;
|
||||
|
||||
public enum eJobState { Running, Succeeded, Failed }
|
||||
|
||||
public virtual eJobState GetState() { return mJobState; }
|
||||
|
||||
public virtual void Dispose() { }
|
||||
|
||||
}
|
||||
|
||||
public class TranslationJob_WWW : TranslationJob
|
||||
{
|
||||
public UnityWebRequest www;
|
||||
|
||||
public override void Dispose()
|
||||
{
|
||||
if (www!=null)
|
||||
www.Dispose();
|
||||
www = null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user