public void ExitGame() { if (totalScore == 0f) { if (pooped == 3) { exit1.EndLevel(); } else { exit2.EndLevel(); } } else { if (totalScore > 0 && totalScore <= 750) { exit3.EndLevel(); } else if (totalScore > 750 && totalScore <= 1500) { exit4.EndLevel(); } else if (totalScore > 1500) { exit5.EndLevel(); } } }
void OnTriggerEnter2D(Collider2D other) { if (other.TryGetComponent(out PlayerController playerController)) { Debug.Log("Ended game"); exit.EndLevel(); } }
private IEnumerator CountTo10() { yield return(new WaitForSeconds(5)); _endScreen.SetActive(true); yield return(new WaitForSeconds(5)); _exit.EndLevel(); }
private IEnumerator CountTo5() { yield return(new WaitForSeconds(5)); _exit.EndLevel(); }
private void ActOnLevelWin() { Debug.Log("[Team19] Level Won"); _levelWinExit.EndLevel(); }
private void ActOnLevelFail() { Debug.Log("[Team19] Level Failed"); _levelFailExit.EndLevel(); }