[Fix] 돌발이벤트 씬 저장항목 누락

This commit is contained in:
HaeinLEE 2025-05-12 13:44:00 +09:00
parent f0e895bf31
commit cd6f53e580
3 changed files with 7 additions and 3 deletions

BIN
Assets/LIN/ReHousing Copy.unity (Stored with Git LFS)

Binary file not shown.

View File

@ -17,6 +17,7 @@ public class InteractionController : MonoBehaviour
private void Start() private void Start()
{ {
PlayerStats.Instance.OnStatsChanged += UpdateStat;
PlayerStats.Instance.OnWorked += SuddenAfterWorkEventHappen; PlayerStats.Instance.OnWorked += SuddenAfterWorkEventHappen;
} }
@ -114,4 +115,8 @@ public class InteractionController : MonoBehaviour
#endregion #endregion
private void UpdateStat(PlayerStats.StatsChangeData statData)
{
Debug.Log(statData.Health);
}
} }

View File

@ -75,7 +75,6 @@ public class HousingCanvasController : MonoBehaviour
#region #region
public void ShowSuddenEventPanel(string actText, Action onSuddenButtonPressed) public void ShowSuddenEventPanel(string actText, Action onSuddenButtonPressed)
{ {
Debug.Log("call evenet panel show");
suddenPanel.SetActive(true); suddenPanel.SetActive(true);
suddenText.text = actText; suddenText.text = actText;
OnSuddenButtonPressed += onSuddenButtonPressed; OnSuddenButtonPressed += onSuddenButtonPressed;