Add blackjack dialog triggers and dialogue data
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class BlackjackSetDialogRegion : MonoBehaviour
|
||||
{
|
||||
[Header("Target Dialog Player")]
|
||||
public DialogPlayer targetDialogPlayer;
|
||||
|
||||
[Header("Region")]
|
||||
public string regionKey = "Area2";
|
||||
|
||||
public void SetRegion()
|
||||
{
|
||||
if (targetDialogPlayer == null)
|
||||
{
|
||||
Debug.LogWarning("[BlackjackSetDialogRegion] Target DialogPlayer is missing.");
|
||||
return;
|
||||
}
|
||||
|
||||
targetDialogPlayer.SetRegion(regionKey);
|
||||
Debug.Log("[BlackjackSetDialogRegion] Set Region: " + regionKey);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user