// Start is called before the first frame update void Start() { thePlayerStatus = FindObjectOfType <StatusHP>(); theViewAngle = GetComponent <FieldOfViewAngle>(); nav = GetComponent <NavMeshAgent>(); theAudio = GetComponent <AudioSource>(); currentTime = waitTime; isAction = true; }
void Start() { thePlayerStatus = FindObjectOfType <StatusController>(); nav = GetComponent <NavMeshAgent>(); theViewAngle = GetComponent <FieldOfViewAngle>(); theAudio = GetComponent <AudioSource>(); //시작할때 대기행동 currentTime = waitTime; isAction = true; destroyTime = 5.0f; }