Exemple #1
0
        public T AddSubComponent <T>() where T : BaseCoreMgr, new()
        {
            BaseCoreMgr component = Create <T>();

            subComponets.Add(component);
            component.IsSubComponent    = true;
            component.parentComponet    = this;
            component.NeedGameLogicTurn = true;
            component.OnBeAttachedToParentComponet(this);
            return((T)component);
        }