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

                TSKeywordParser.Init();
            }
        }
예제 #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.");
            }
        }