示例#1
0
        static void Clear()
        {
            if (it != null) it.StopAllCoroutines();

            tweens = null;

            if (!isPermanent) {
                if (tweenGOInstance != null) Destroy(tweenGOInstance);
                tweenGOInstance = null;
                it = null;
            }
        }
示例#2
0
 static void NewTweenInstance()
 {
     tweenGOInstance = new GameObject(GAMEOBJNAME);
     it = tweenGOInstance.AddComponent<HOTween>();
     DontDestroyOnLoad(tweenGOInstance);
 }