public List <T> AllOfType <T>() where T : ECSComponent { List <T> list = Registry.AllOfType <T>(); if (list != null) { return(list); } else { Debug.LogError("No component of type " + typeof(T) + " was found on entity."); return(null); } }