DEG-124 [Fix] 버그 수정
This commit is contained in:
parent
d4de4f320d
commit
5a9482fdbc
@ -1,8 +1,10 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using UnityEditor.TextCore.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public enum PlayerState { None, Idle, Move, Win, Hit, Dead }
|
||||
|
||||
@ -62,6 +64,11 @@ public class PlayerController : CharacterBase, IObserver<GameObject>
|
||||
hitEffectController = GetComponentInChildren<PlayerHitEffectController>();
|
||||
|
||||
PlayerInit();
|
||||
|
||||
// isBattle 초기화 (임시)
|
||||
/*bool isHousingScene = SceneManager.GetActiveScene().name.Contains("Housing");
|
||||
_isBattle = !isHousingScene;
|
||||
Debug.Log("_isBattle: " + _isBattle);*/
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
BIN
Assets/KSH/DungeonTestScene.unity
(Stored with Git LFS)
BIN
Assets/KSH/DungeonTestScene.unity
(Stored with Git LFS)
Binary file not shown.
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
BIN
Assets/KSH/ReHousing.unity
(Stored with Git LFS)
Binary file not shown.
@ -80,6 +80,7 @@ public partial class GameManager : Singleton<GameManager>
|
||||
|
||||
private void OnDestroy()
|
||||
{
|
||||
if(PlayerStats.Instance != null)
|
||||
PlayerStats.Instance.OnDayEnded -= AdvanceDay; // 이벤트 구독 해제
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user