Ejemplo n.º 1
0
    IEnumerator ActiveWindow()
    {
        while (true)
        {
            if (!TalkManager.Getinstance().TalkWindow.activeSelf)
            {
                shop.Window.SetActive(true);
                UIManager.Getinstance().Panel.SetActive(false);
                StopCoroutine("ActiveWindow");
            }

            yield return(new WaitForSeconds(0.5f));
        }
    }
Ejemplo n.º 2
0
 public void ConversePlayer()
 {
     if (ConverseDistance > GetDistance())
     {
         if (TalkManager.Getinstance().HaveTalk(npcID))
         {
             Debug.Log(npcID);
             TalkManager.Getinstance().NPC_Name.text = Name;
             TalkManager.Getinstance().TalkToNPC(npcID);
         }
         StartCoroutine("ActiveWindow");
     }
     else
     {
         shop.Window.SetActive(false);
     }
 }