Esempio n. 1
0
 public void MonsterCollision()
 {
     Status = CaptureSceneStatus.Successful;
     GameManager.Instance.Catching.MonsterCatched = true;
     GameManager.Instance.MonsterManager.AddCatchedMonster();
     GameManager.Instance.CurrentPlayer.UpdateMonsters();
     OrbCounter.SetActive(false);
     CaptureResult.SetActive(true);
     presentLevel = GameManager.Instance.MonsterManager.GetMonsterByName(GameManager.Instance.Catching.MonsterNameToCatch).Stats.Level;
     captureResultManager.Initialize(GameManager.Instance.Catching.MonsterNameToCatch, true, presentLevel > level);
 }
Esempio n. 2
0
 public void OrbDestroyed()
 {
     CurrentThrowAttempts--;
     if (CurrentThrowAttempts <= 0 && Status != CaptureSceneStatus.Successful)
     {
         GameManager.Instance.Catching.MonsterCatched = false;
         Status = CaptureSceneStatus.Failed;
         OrbCounter.SetActive(false);
         CaptureResult.SetActive(true);
         presentLevel = GameManager.Instance.MonsterManager.GetMonsterByName(GameManager.Instance.Catching.MonsterNameToCatch).Stats.Level;
         captureResultManager.Initialize(GameManager.Instance.Catching.MonsterNameToCatch, false, presentLevel > level);
     }
     else
     {
         OrbCounter.SetActive(true);
         orbCountText.text = CurrentThrowAttempts.ToString();
         Instantiate(orb, spawnPoint, Quaternion.identity);
     }
 }