Ejemplo n.º 1
0
    //------------------------------------------
    void Awake()
    {
        ThisLineSight   = GetComponent <LineSight>();
        ThisAgent       = GetComponent <UnityEngine.AI.NavMeshAgent>();
        PlayerTransform = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
        mouseNPC        = GetComponent <MouseNPC>();

        ThisAgent.stoppingDistance = stopDistance;
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     mouseNPC    = mouse.GetComponent <MouseNPC>();
     ai_enemy    = mouse.GetComponent <AI_Enemy>();
     soundSource = GetComponent <AudioSource>();
 }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 void Start()
 {
     mouseNPC    = mouse.GetComponent <MouseNPC>();
     ai_guard    = mouse.GetComponent <AI_GuardMouse>();
     soundSource = GetComponent <AudioSource>();
 }
 // Start is called before the first frame update
 void Start()
 {
     mouseNPC    = mouse.GetComponent <MouseNPC>();
     ai          = mouse.GetComponent <AI_LookOut>();
     soundSource = GetComponent <AudioSource>();
 }