start to change action system

This commit is contained in:
Vladimir Koshevarov
2022-08-18 16:07:06 +03:00
parent a9e1db4ac2
commit 9366aa479c
11 changed files with 31 additions and 49 deletions
+4 -2
View File
@@ -8,7 +8,8 @@ namespace Assets.Scripts.Buildings
{
protected string _name;
protected Dictionary<string, BaseAction> _optionsList;
[SerializeField]
private ConversationController _conversationController;
// Start is called before the first frame update
void Start()
{
@@ -28,7 +29,8 @@ namespace Assets.Scripts.Buildings
void OnTriggerEnter(Collider other)
{
ConversationController.Instance.Change(_name, _optionsList);
_conversationController.Change(_name, _optionsList);
}
}
}