void Paused() { if (playerStatus.GetWantPause() && playerStatus.GetAlive()) { pauseMenu.SetActive(true); tmolvl.SetTimerStop(true); } else if (!playerStatus.GetWantPause() && playerStatus.GetAlive()) { pauseMenu.SetActive(false); warningMenu.SetActive(false); tmolvl.SetTimerStop(false); } if (lvlCon.RequestToNextHud()) { nextRequest.SetActive(true); tmolvl.SetTimerStop(true); } else if (nextRequest.activeSelf) { nextRequest.SetActive(false); } if (!playerStatus.GetHasGasoline() && !playerStatus.GetAlive()) { if (lvlCon.getFinNext()) { NotGasolineMenu.SetActive(true); } tmolvl.SetTimerStop(true); } }
void LostCondition() { if (!plyerttu.GetAlive() && plyerttu.GetHasGasoline()) { plyerMove.SetInAnimation(true); tolvl.SetTimerStop(true); if (plyerNimtion.Animation()) { plyerMove.RestartPosition(); plyerttu.SetAlive(true); mp.RestartMap(); plyerMove.SetInAnimation(false); tolvl.SetTimerStop(false); } } if (!plyerttu.GetHasGasoline() && !plyerttu.GetAlive()) { plyerMove.SetInAnimation(true); if (plyerNimtion.Animation()) { finNext = true; } } }