Example #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        if (other.GetComponent <Moving>() == null)
        {
            return;
        }

        OrbCounter.AddPoints(pointsToAdd);
        Destroy(gameObject);
    }
Example #2
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);
 }
Example #3
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);
     }
 }
Example #4
0
 private void TurnOptionsOff()
 {
     Options.SetActive(false);
     OrbCounter.SetActive(false);
     Orb.SetActive(false);
 }