Пример #1
0
 private void Start()
 {
     PositionMonster(GameManager.Instance.MonsterManager.GetMonsterByName(GameManager.Instance.Catching.MonsterNameToCatch));
     CalculateMaxThrows();
     CurrentThrowAttempts = maxThrowAttempts;
     orbCountText.text    = CurrentThrowAttempts.ToString();
 }
Пример #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);
     }
 }