private void CheckForWin() { if (cellsMarkedAsBomb.Count == bombsCount && cellsMarkedAsBomb.All(r => r.IsBomb)) { OnGameWin?.Invoke(); } }
private void OnTriggerEnter2D(Collider2D other) { if (other.CompareTag("Player")) { OnGameWin?.Invoke(); } }
public void CheckWin() { if (CurrentRound.RocksEntered >= TotalRocksToWin) { OnGameWin?.Invoke(); } OnRockEnter?.Invoke(); }
private void OnTriggerEnter(Collider other) { if (other.GetComponent <RobotController>() != null) { //Debug.Log("Success..."); currentLevel++; if (currentLevel == 10) { OnGameWin?.Invoke(); robot.ResetCommands(); } else { OnLevelIncreased?.Invoke(currentLevel + 1); transform.position = targetPositions[currentLevel].position; robot.ResetCommands(); } } }
public void GameWin() { OnGameWin?.Invoke(); StartCoroutine(LoadMenu()); }
public void GameWin() { OnGameWin?.Invoke(); }
public void GameWin() => OnGameWin?.Invoke();
public override void TimerEnd() { isPlaying = false; Audio.DOFade(0f, 1f); OnGameWin?.Invoke(); }