Beispiel #1
0
        void Awake()
        {
            if (instance == null)
            {
                instance = this;
                tweens   = new List <TweenSharp>();
                PluginManager.Init();
                removeList = new List <TweenSharp>();

                TSKeywordParser.Init();
            }
        }
Beispiel #2
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
                tweens   = new List <TSTimeDef>();
                TSPluginManager.Init();

                TSKeywordParser.Init();
            }
            else
            {
                throw new Exception("TSScheduler is a singleton, but instatiated twice. Make sure only one copy exists, and consider disabling InstantiateOnLoad in TweenSharp settings.");
            }
        }
Beispiel #3
0
 private void OnDestroy()
 {
     tweens.Clear();
     instance = null;
 }
Beispiel #4
0
 public void Kill()
 {
     TSScheduler.Unregister(this);
 }