public override bool Execute(ControllableCharacter character) { if (character.MoveToLocation(targetLocation)) { return(character.DropItem(item, targetLocation)); } return(false); }
public override bool Execute(ControllableCharacter character) { if (character.MoveToLocation(item.transform.position)) { character.PickUpItem(item); return(true); } return(false); }
public override bool Execute(ControllableCharacter character) { character.MoveToLocation(target.transform.position); if ((character.transform.position - target.transform.position).magnitude < killRadius) { return(character.KillTargetCharacter(target, killRadius)); } return(false); }
public override bool Execute(ControllableCharacter character) { Vector3 offset = new Vector3(targetLocation.x, 1f, targetLocation.z); return(character.MoveToLocation(offset)); }
public override bool Execute(ControllableCharacter character) { return(character.MoveToLocation(targetLocation)); }