コード例 #1
0
    public override bool Execute(ControllableCharacter character)
    {
        if (character.MoveToLocation(targetLocation))
        {
            return(character.DropItem(item, targetLocation));
        }

        return(false);
    }
コード例 #2
0
    public override bool Execute(ControllableCharacter character)
    {
        if (character.MoveToLocation(item.transform.position))
        {
            character.PickUpItem(item);
            return(true);
        }

        return(false);
    }
コード例 #3
0
    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);
    }
コード例 #4
0
    public override bool Execute(ControllableCharacter character)
    {
        Vector3 offset = new Vector3(targetLocation.x, 1f, targetLocation.z);

        return(character.MoveToLocation(offset));
    }
コード例 #5
0
 public override bool Execute(ControllableCharacter character)
 {
     return(character.MoveToLocation(targetLocation));
 }