Beispiel #1
0
    // Update is called once per frame
    protected virtual void Update()
    {
        if (stat.hp <= 0)
        {
            pm.Pause();
            Dead();
            return;
        }

        FindTarget();       // 타겟 찾기
        JudgeAndDoAction(); // 행동 결정 및 실행

        attackDelay += Time.deltaTime;
    }