NpcUI.cs 310 B

12345678910111213141516
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class NpcUI : MonoBehaviour
  6. {
  7. public Button btnNext;
  8. public void Start(){
  9. btnNext.onClick.AddListener(onNext);
  10. }
  11. void onNext(){
  12. npcScript.activeNpc.NextLine();
  13. }
  14. }