void Start() { var pool = new DebugPool(ComponentIds.TotalComponents, "Test Pool"); pool.GetGroup(Matcher.Vector3); pool.GetGroup(Matcher.GameObject); pool.GetGroup(Matcher.AllOf(Matcher.GameObject, Matcher.Vector3)); pool.GetGroup(Matcher.AllOf(Matcher.GameObject, Matcher.Vector3, Matcher.NoneOf(Matcher.MyString, Matcher.MyEnum))); createTestEntities(pool); createTestEntityWithNullValues(pool); }
public static void InitPool(GameObject debugPrefab) { pool = new DebugPool(); pool.Init(2000, debugPrefab); }