Пример #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "NPC")
     {
         NPC = other.gameObject;
         NPC.transform.position = new Vector3(spawn.transform.position.x, spawn.transform.position.y, spawn.transform.position.z);
         npcAnimator            = NPC.GetComponent <Animator>();
         npcAnimator.SetBool("isActive", false);
         gm.AddNPC(NPC);
     }
 }