public void ExitOutMapZone(OutMapZone exitedZone) { if (activeOutMapZones.Contains(exitedZone)) { activeOutMapZones.Remove(exitedZone); } if (activeOutMapZones.Count == 0) { remainingTimeBeforeNextDamages = 0; GameManager.gameManager.Player.StopDangerParticles(); } }
public void EnterOutMapZone(OutMapZone enteredZone) { if (!GameManager.gameManager.StartedFight && !GameManager.gameManager.Won) { return; } if (activeOutMapZones.Count == 0) { PlayWarningDialogue(); GameManager.gameManager.Player.PlayDangerParticles(); } activeOutMapZones.Add(enteredZone); if (activeOutMapZones.Count == 1) { remainingTimeBeforeNextDamages = timeBeforeFirstDamages; } }