public void show() { if (isShowingGrid) { return; } isShowingGrid = true; CLThingsPool.borrowObjAsyn(lineName, (Callback)onSetPrefab, null); }
public void drawLine(Vector3 startPos, Vector3 endPos, Color color) { ArrayList list = ListEx.builder().Add(startPos).Add(endPos).Add(color).ToList(); CLThingsPool.borrowObjAsyn(lineName, (Callback)doDrawLine, list); }