Ejemplo n.º 1
0
 private void Start()
 {
     if (GameObject.FindGameObjectWithTag("Connection"))
     {
         con = GameObject.FindGameObjectWithTag("Connection").GetComponent <TestClientConnection>();
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     pathvalue = GetComponent <AgentData>();
     Identify  = GetComponent <SphereCaster>();
     agent     = GetComponent <NavMeshAgent>();
     anim      = GetComponent <Animator>();
     enemy     = GetComponent <EnemyMovement>();
     Timer     = 20;
     InvokeRepeating("Idle", 1f, Random.Range(30f, 60f));
     test     = GameObject.FindWithTag("Connection").GetComponent <TestClientConnection>();
     thisRend = GetComponent <Renderer>();
 }