public void View(TalkBehaviour _talker, Item _item) { UIWantBox sayBox = GetObject(); sayBox.gameObject.SetActive(true); sayBox.SetSay(_talker, _item); }
public void View(TalkBehaviour _talker, Talk _talk) { UISayBox sayBox = GetObject(); sayBox.gameObject.SetActive(true); sayBox.SetSay(_talker, _talk); }
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()); }
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()); }
void OnEnable() { tr.SetAsFirstSibling(); sayText.text = ""; talker = null; }
void Awake() { tr = GetComponent <Transform>(); ri = GetComponent <Rigidbody2D>(); talkBehaviour = GetComponent <TalkBehaviour>(); }
void OnEnable() { tr.SetAsFirstSibling(); iconImage.sprite = null; talker = null; }
public void ViewWant(TalkBehaviour _talker, Item _item) { wantManager.View(_talker, _item); }
public void ViewSay(TalkBehaviour _talker, Talk _talk) { sayManager.View(_talker, _talk); }