24 lines
453 B
C#
24 lines
453 B
C#
using UnityEngine;
|
|
|
|
namespace I2.Loc
|
|
{
|
|
public class CoroutineManager : MonoBehaviour
|
|
{
|
|
private static CoroutineManager mInstance;
|
|
|
|
public static CoroutineManager pInstance
|
|
{
|
|
get
|
|
{
|
|
if (mInstance == null)
|
|
{
|
|
GameObject gameObject = new GameObject("GoogleTranslation");
|
|
gameObject.hideFlags |= HideFlags.HideAndDontSave;
|
|
mInstance = gameObject.AddComponent<CoroutineManager>();
|
|
}
|
|
return mInstance;
|
|
}
|
|
}
|
|
}
|
|
}
|