コード例 #1
0
    public void UpdateDo()
    {
        // 죽거나 클리어 상태가 아닐 시 상태 업데이트 지속
        if (_stateType == StateType.Clear)
        {
            return;
        }

        _charAI.CheckState(_stateType);

        if (_stateType == StateType.Death)
        {
            return;
        }

        if (_target != null)
        {
            RotateToTarget();
        }

        if (_target != null || Attack != null)
        {
            _charAttack.UpdateAttack();
        }

        _charAttack._AddTime();
    }