TranslationJob.cs 708 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine.Networking;
  4. namespace I2.Loc
  5. {
  6. using TranslationDictionary = Dictionary<string, TranslationQuery>;
  7. public class TranslationJob : IDisposable
  8. {
  9. public eJobState mJobState = eJobState.Running;
  10. public enum eJobState { Running, Succeeded, Failed }
  11. public virtual eJobState GetState() { return mJobState; }
  12. public virtual void Dispose() { }
  13. }
  14. public class TranslationJob_WWW : TranslationJob
  15. {
  16. public UnityWebRequest www;
  17. public override void Dispose()
  18. {
  19. if (www!=null)
  20. www.Dispose();
  21. www = null;
  22. }
  23. }
  24. }