コード例 #1
0
ファイル: TSScheduler.cs プロジェクト: keraj37/TweenSharp
        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.");
            }
        }