private void Update()
 {
     if (finished)
     {
         IsDone.SetActive(true);
         IsCheck.SetActive(false);
         if (!noti)
         {
             sb.SpawnBlobje();
             Notifaction.startNotification("Minigame quest", "Well done, you finished this quest.");
             noti = true;
         }
     }
     GameObject[] list = GameObject.FindGameObjectsWithTag("MiniGame");
     foreach (GameObject r in list)
     {
         if (Vector3.Distance(this.gameObject.transform.position, r.transform.position) < 10)
         {
             MiniGameObj = r.gameObject;
         }
         else if (r == MiniGameObj)
         {
             MiniGameObj = null;
         }
     }
 }
示例#2
0
 private void Update()
 {
     if (PlantsFixed >= 5)
     {
         if (!anim)
         {
             sb.SpawnBlobje();
             sr.startNotification("Plants quest", "You have completed the quest.");
             anim = true;
         }
     }
 }