Add travel map flow and update docs

This commit is contained in:
jongjae0305
2026-06-24 15:34:09 +09:00
parent 8561fab0a2
commit af26dd4311
37 changed files with 3114 additions and 165 deletions
+12 -1
View File
@@ -42,7 +42,7 @@ public class PlayerController : MonoBehaviour {
}
private void Update() {
if(isDead)
if(isDead || !GameFlowManager.IsGameplayActive)
{
return;
}
@@ -108,6 +108,11 @@ public class PlayerController : MonoBehaviour {
}
private void OnTriggerEnter2D(Collider2D other) {
if(!GameFlowManager.IsGameplayActive)
{
return;
}
if(other.CompareTag("Dead") && !isDead)
{
if(other.gameObject.name == "DeadZone")
@@ -163,6 +168,12 @@ public class PlayerController : MonoBehaviour {
return;
}
if(GameManager.instance != null && GameManager.instance.TryBlockDamageWithItem())
{
StartCoroutine(InvincibleRoutine());
return;
}
bool shouldDie = GameManager.instance.TakeDamage();
if(shouldDie)