public void MoveTo(Transform t) { WorldItem item = itemVar as WorldItem; if (item != null) { pendingActions++; item.MoveToPoint(GetPos(t), true); } }