Пример #1
0
        public T Get <T>() where T : class, IDataComponent
        {
            if (TryGet <T>(out var component))
            {
                return(component as T);
            }

            StaticLogger.Warn($"No DataComponent of type [{(typeof(T).Name)}] found");
            return(null);
        }