private void CreateAndAddNewChecker() { AreaCollisionChecker collisionCheckerInstance = (AreaCollisionChecker)collisionCheckerPrefab.Instance(); GetParent().CallDeferred("add_child", collisionCheckerInstance); _pooledCollisionCheckers.Add(collisionCheckerInstance); }
public AreaCollisionChecker GetAreaCollisionChecker() { AreaCollisionChecker areaCollisionChecker = GetFreeCollisionChecker(); areaCollisionChecker.SetInUse(); return(areaCollisionChecker); }
public void ReturnCollisionChecker(AreaCollisionChecker areaCollisionChecker) => areaCollisionChecker.SetFree();