示例#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);
 }
示例#2
0
 public void OrbDestroyed()
 {
     currentThrowAttempts--;
     if (currentThrowAttempts <= 0)
     {
         if (status != CaptureSceneStatus.Successful)
         {
             status = CaptureSceneStatus.Failed;
             Invoke("MoveToWorldScene", 2.0f);
         }
     }
     else
     {
         Instantiate(orb, spawnPoint, Quaternion.identity);
     }
 }
示例#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);
     }
 }
示例#4
0
 public override void clusterCollision(GameObject cluster, Collision other)
 {
     status = CaptureSceneStatus.Successful;
     Invoke("MoveToWorldScene", 2.0f);
 }
示例#5
0
 public void setStatusSuccess()
 {
     status = CaptureSceneStatus.Successful;
 }