void Awake() { if (instance == null) { instance = this; tweens = new List <TweenSharp>(); PluginManager.Init(); removeList = new List <TweenSharp>(); TSKeywordParser.Init(); } }
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."); } }