Ejemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Vector3.Distance(player.transform.position, transform.position) < 8f)
     {
         dots.SetActive(true);
         if (Input.GetKeyDown(KeyCode.C) && !dialogue.open && dialogue.timeSinceLast > .1f)
         {
             shopMenu.SetActive(true);
             dialogue.OpenDialogue(talkSprite, text, gameObject);
         }
     }
     else
     {
         dots.SetActive(false);
     }
 }