Esempio n. 1
0
 private void CheckForWin()
 {
     if (cellsMarkedAsBomb.Count == bombsCount && cellsMarkedAsBomb.All(r => r.IsBomb))
     {
         OnGameWin?.Invoke();
     }
 }
Esempio n. 2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.CompareTag("Player"))
     {
         OnGameWin?.Invoke();
     }
 }
Esempio n. 3
0
 public void CheckWin()
 {
     if (CurrentRound.RocksEntered >= TotalRocksToWin)
     {
         OnGameWin?.Invoke();
     }
     OnRockEnter?.Invoke();
 }
Esempio n. 4
0
 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();
         }
     }
 }
Esempio n. 5
0
 public void GameWin()
 {
     OnGameWin?.Invoke();
     StartCoroutine(LoadMenu());
 }
Esempio n. 6
0
 public void GameWin()
 {
     OnGameWin?.Invoke();
 }
Esempio n. 7
0
 public void GameWin() => OnGameWin?.Invoke();
Esempio n. 8
0
 public override void TimerEnd()
 {
     isPlaying = false;
     Audio.DOFade(0f, 1f);
     OnGameWin?.Invoke();
 }