Exemplo n.º 1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player" & angry)
     {
         Transform transform = player;
         Vector3   position  = player.position;
         transform.position = new Vector3(5f, position.y, 80f);
         NavMeshAgent navMeshAgent = baldiAgent;
         Vector3      position2    = baldi.position;
         navMeshAgent.Warp(new Vector3(5f, position2.y, 125f));
         Transform transform2 = player;
         Vector3   position3  = baldi.position;
         float     x          = position3.x;
         Vector3   position4  = player.position;
         float     y          = position4.y;
         Vector3   position5  = baldi.position;
         transform2.LookAt(new Vector3(x, y, position5.z));
         gc.DespawnCrafters();
     }
 }