29 lines
724 B
C#
29 lines
724 B
C#
using UnityEngine;
|
|
|
|
public class StoryTestButton : MonoBehaviour
|
|
{
|
|
public CharacterData testCharacter;
|
|
public int addAmount = 10;
|
|
|
|
[ContextMenu("TEST / Add Affection")]
|
|
public void TestAddAffection()
|
|
{
|
|
if (testCharacter == null)
|
|
{
|
|
Debug.LogWarning("테스트 캐릭터가 없습니다.");
|
|
return;
|
|
}
|
|
|
|
StoryManager.Instance.AddAffection(testCharacter, addAmount);
|
|
|
|
Debug.Log($"{testCharacter.name} 호감도 +{addAmount}");
|
|
}
|
|
|
|
[ContextMenu("TEST / Add Main Progress")]
|
|
public void TestAddMainProgress()
|
|
{
|
|
StoryManager.Instance.MainProgress += addAmount;
|
|
|
|
Debug.Log($"메인 진행도 +{addAmount}");
|
|
}
|
|
} |