Пример #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.");
            }
        }