Redesign dialog UI system
This commit is contained in:
@@ -4,7 +4,6 @@ using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using static UnityEditor.Experimental.GraphView.GraphView;
|
||||
|
||||
public class ConversationController : MonoBehaviour
|
||||
{
|
||||
@@ -13,8 +12,8 @@ public class ConversationController : MonoBehaviour
|
||||
[SerializeField]
|
||||
public Button _choiceButton;
|
||||
[SerializeField]
|
||||
private Button _closeBtn;
|
||||
|
||||
private Button _closeBtn;
|
||||
|
||||
[SerializeField]
|
||||
CharacterMovement _player;
|
||||
|
||||
@@ -27,7 +26,12 @@ public class ConversationController : MonoBehaviour
|
||||
}
|
||||
|
||||
public void Change(string title, Dictionary<string, BaseAction> options)
|
||||
{
|
||||
{
|
||||
_closeBtn.onClick.AddListener(() =>
|
||||
{
|
||||
Hide();
|
||||
});
|
||||
|
||||
_player.allowMovement = false;
|
||||
RemoveChoices();
|
||||
_title.text = title;
|
||||
@@ -55,7 +59,6 @@ public class ConversationController : MonoBehaviour
|
||||
}
|
||||
public void Hide()
|
||||
{
|
||||
|
||||
RemoveChoices();
|
||||
gameObject.SetActive(false);
|
||||
Time.timeScale = 1;
|
||||
|
||||
Reference in New Issue
Block a user