static void Clear() { if (it != null) it.StopAllCoroutines(); tweens = null; if (!isPermanent) { if (tweenGOInstance != null) Destroy(tweenGOInstance); tweenGOInstance = null; it = null; } }
static void NewTweenInstance() { tweenGOInstance = new GameObject(GAMEOBJNAME); it = tweenGOInstance.AddComponent<HOTween>(); DontDestroyOnLoad(tweenGOInstance); }