예제 #1
0
    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);
    }
예제 #2
0
 public static void InitPool(GameObject debugPrefab)
 {
     pool = new DebugPool();
     pool.Init(2000, debugPrefab);
 }