예제 #1
0
    public override void ActionUpdate(AI_Base brain, Character_Base character)
    {
        base.ActionUpdate(brain, character);
        float angle = character.Rotate(targetPosition);

        if (angle <= AngleRange)
        {
            ActionFinish();
        }
    }
예제 #2
0
    public override void ActionUpdate(AI_Base brain, Character_Base character)
    {
        base.ActionUpdate(brain, character);

        if (RotateToTransform)
        {
            character.Rotate(RotateToTransform.position);
        }
        timer -= Time.deltaTime;
        if (timer <= 0)
        {
            ActionFinish();
        }
    }