// stop pathing to a box/robot that this has targeted, but has since been grabbed by another robot (or the player) public void CheckIfTargetLost() { if (isTargetThrowable) { Throwable throwableTarget = target.GetComponent <Throwable> (); Robot targeter = throwableTarget.GetTargeter(); if (targeter == null || (targeter != null && targeter != this)) { StopMoving(); } } }