Ejemplo n.º 1
0
 // 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;
 }
Ejemplo n.º 2
0
 void Start()
 {
     thePlayerStatus = FindObjectOfType <StatusController>();
     nav             = GetComponent <NavMeshAgent>();
     theViewAngle    = GetComponent <FieldOfViewAngle>();
     theAudio        = GetComponent <AudioSource>();
     //시작할때 대기행동
     currentTime = waitTime;
     isAction    = true;
     destroyTime = 5.0f;
 }