Beispiel #1
0
        public void RemoveFSComponent(FSComponent fsc)
        {
            var type = fsc.GetType();

            if (_getCache.ContainsKey(type))
            {
                _getCache.Remove(type);
            }
            FSComponents.Remove(fsc);
        }
Beispiel #2
0
        public void AddFSComponent(FSComponent fsc, bool autoReady = true)
        {
            fsc.Initialize(this);
            FSComponents.Add(fsc);

            if (Initialized && autoReady)
            {
                fsc.OnStart();
            }
        }