remove unnecessary models in animation folder
player waypoint indicator walk and idle animations stop when menu opens
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using static UnityEditor.Experimental.GraphView.GraphView;
|
||||
|
||||
public class ConversationController : MonoBehaviour
|
||||
{
|
||||
@@ -13,6 +14,9 @@ public class ConversationController : MonoBehaviour
|
||||
public Button _choiceButton;
|
||||
[SerializeField]
|
||||
private Button _closeBtn;
|
||||
|
||||
[SerializeField]
|
||||
CharacterMovement _player;
|
||||
|
||||
public ConversationChangeEvent conversationChangeEvent;
|
||||
private List<ChoiceController> choiceControllers = new();
|
||||
@@ -24,6 +28,7 @@ public class ConversationController : MonoBehaviour
|
||||
|
||||
public void Change(string title, Dictionary<string, BaseAction> options)
|
||||
{
|
||||
_player.allowMovement = false;
|
||||
RemoveChoices();
|
||||
_title.text = title;
|
||||
gameObject.SetActive(true);
|
||||
@@ -50,8 +55,10 @@ public class ConversationController : MonoBehaviour
|
||||
}
|
||||
public void Hide()
|
||||
{
|
||||
|
||||
RemoveChoices();
|
||||
gameObject.SetActive(false);
|
||||
Time.timeScale = 1;
|
||||
_player.allowMovement = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user