22 lines
558 B
C#
22 lines
558 B
C#
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);
|
|
}
|
|
} |