컴퓨터 수정
This commit is contained in:
29
Assets/02_Scripts/UI/computer/StoryTestButton.cs
Normal file
29
Assets/02_Scripts/UI/computer/StoryTestButton.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user