public void TeleportTo(Transform t) { WorldItem item = itemVar as WorldItem; if (item != null) { item.TeleportToPoint(GetPos(t)); } }