Esempio n. 1
0
 public void View(ShopBehaviour _shop)
 {
     UIInGame.instance.shopMenu.HideAnimate(null);
     gameObject.SetActive(true);
     shop = _shop;
     targetTracker.SetTarget(_shop.transform, Camera.main.WorldToScreenPoint(_shop.transform.position), Vector3.zero);
     colorPicker.Color = _shop.info.tentColor;
     colorPicker.SetOnValueChangeCallback(OnChangeColor);
     signListView.ViewList(true, false, UpdateSign);
 }
Esempio n. 2
0
    public void SetSay(TalkBehaviour _talker, Talk _talk)
    {
        talker  = _talker;
        viewSay = _talk.say;

        targetTracker.SetTarget(talker.transform, _talker.transform.position, margin);

        if (say != null)
        {
            StopCoroutine(say);
        }

        say = StartCoroutine(Say());
    }
Esempio n. 3
0
    public void SetSay(TalkBehaviour _talker, Item _item)
    {
        talker           = _talker;
        item             = new Item(_item);
        iconImage.sprite = item.icon;
        targetTracker.SetTarget(talker.transform, _talker.transform.position, margin);

        if (delay != null)
        {
            StopCoroutine(delay);
        }

        delay = StartCoroutine(Delay());
    }