コード例 #1
0
    IEnumerator DanceOff()
    {
        battleHandler.BeginBattlePhase(myStats, currentOpponent.myStats);
        controller.enabled = false;
        currentOpponent.transform.LookAt(transform.position);
        body.velocity = Vector3.zero;
        currentOpponent.uiCanvas.SetActive(false);
        yield return(new WaitForSeconds(3f));

        battleHandler.Battle(myStats, currentOpponent.myStats);
        currentOpponent.uiCanvas.SetActive(true);
        controller.enabled = true;
        currentOpponent.transform.LookAt(transform.position + Vector3.forward);
    }