start to change action system
This commit is contained in:
@@ -10,6 +10,7 @@ public class ConversationChangeEvent : UnityEvent<BaseAction> { }
|
||||
|
||||
public class ChoiceController : MonoBehaviour
|
||||
{
|
||||
public PlayerController playerController;
|
||||
public KeyValuePair<string, BaseAction> _option;
|
||||
public ConversationChangeEvent conversationChangeEvent;
|
||||
// Update is called once per frame
|
||||
@@ -41,6 +42,7 @@ public class ChoiceController : MonoBehaviour
|
||||
|
||||
public void MakeChoice()
|
||||
{
|
||||
playerController.TryBuyAction(_option.Value);
|
||||
conversationChangeEvent.Invoke(_option.Value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user