コード例 #1
0
    public void View(TalkBehaviour _talker, Item _item)
    {
        UIWantBox sayBox = GetObject();

        sayBox.gameObject.SetActive(true);
        sayBox.SetSay(_talker, _item);
    }
コード例 #2
0
ファイル: UISayManager.cs プロジェクト: kyn320/Festival
    public void View(TalkBehaviour _talker, Talk _talk)
    {
        UISayBox sayBox = GetObject();

        sayBox.gameObject.SetActive(true);
        sayBox.SetSay(_talker, _talk);
    }
コード例 #3
0
ファイル: UISayBox.cs プロジェクト: kyn320/Festival
    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());
    }
コード例 #4
0
ファイル: UIWantBox.cs プロジェクト: kyn320/Festival
    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());
    }
コード例 #5
0
ファイル: UISayBox.cs プロジェクト: kyn320/Festival
 void OnEnable()
 {
     tr.SetAsFirstSibling();
     sayText.text = "";
     talker       = null;
 }
コード例 #6
0
ファイル: NpcBehaviour.cs プロジェクト: kyn320/Festival
 void Awake()
 {
     tr            = GetComponent <Transform>();
     ri            = GetComponent <Rigidbody2D>();
     talkBehaviour = GetComponent <TalkBehaviour>();
 }
コード例 #7
0
ファイル: UIWantBox.cs プロジェクト: kyn320/Festival
 void OnEnable()
 {
     tr.SetAsFirstSibling();
     iconImage.sprite = null;
     talker           = null;
 }
コード例 #8
0
ファイル: UIInGame.cs プロジェクト: kyn320/Festival
 public void ViewWant(TalkBehaviour _talker, Item _item)
 {
     wantManager.View(_talker, _item);
 }
コード例 #9
0
ファイル: UIInGame.cs プロジェクト: kyn320/Festival
 public void ViewSay(TalkBehaviour _talker, Talk _talk)
 {
     sayManager.View(_talker, _talk);
 }