[Style] 확인용 로그 삭제 구독해제 방식 변경
This commit is contained in:
parent
db5e0923c7
commit
c2417e4848
@ -17,7 +17,7 @@ public class InteractionController : MonoBehaviour
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
playerStats.OnWorked += SuddenAfterWorkEventHappen();
|
playerStats.OnWorked += SuddenAfterWorkEventHappen;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 상호작용 가능한 사물 범위에 들어올 때
|
// 상호작용 가능한 사물 범위에 들어올 때
|
||||||
@ -65,12 +65,11 @@ public class InteractionController : MonoBehaviour
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Action SuddenAfterWorkEventHappen()
|
public void SuddenAfterWorkEventHappen()
|
||||||
{
|
{
|
||||||
Debug.Log("돌발이벤트 발생");
|
|
||||||
AfterWorkEvent afterWorkEvent = _suddenEventController.SuddenEventCalculator();
|
AfterWorkEvent afterWorkEvent = _suddenEventController.SuddenEventCalculator();
|
||||||
if (afterWorkEvent == AfterWorkEvent.None)
|
if (afterWorkEvent == AfterWorkEvent.None)
|
||||||
return null;
|
return;
|
||||||
switch (afterWorkEvent)
|
switch (afterWorkEvent)
|
||||||
{
|
{
|
||||||
case AfterWorkEvent.OvertimeWork:
|
case AfterWorkEvent.OvertimeWork:
|
||||||
@ -87,6 +86,5 @@ public class InteractionController : MonoBehaviour
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -83,8 +83,7 @@ public class HousingCanvasController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
suddenPanel.SetActive(false);
|
suddenPanel.SetActive(false);
|
||||||
suddenText.text = "";
|
suddenText.text = "";
|
||||||
OnSuddenButtonPressed -= OnSuddenButtonPressed;
|
OnSuddenButtonPressed = null;
|
||||||
Debug.Log(OnSuddenButtonPressed);
|
|
||||||
}
|
}
|
||||||
public void OnSuddenConfirmButton()
|
public void OnSuddenConfirmButton()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user