示例#1
0
    IEnumerator ChooseTarget()
    {
        Debug.Log("Chose target.");
        LockCommands();
        input     = 0;
        canChoose = true;
        isChosen  = false;
        yield return(new WaitUntil(() => isChosen));

        chosenTarget = enemies[input];
        battleCamera.ResetPosition();
        HideEnemyStats();
        canChoose = false;
        isChosen  = false;
        AttackTarget();
        animator.Act(currentPlayer, chosenTarget);
        doneTurn = true;
    }