[Fix] 돌발이벤트 씬 저장항목 누락
This commit is contained in:
parent
f0e895bf31
commit
cd6f53e580
BIN
Assets/LIN/ReHousing Copy.unity
(Stored with Git LFS)
BIN
Assets/LIN/ReHousing Copy.unity
(Stored with Git LFS)
Binary file not shown.
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user