Exemplo n.º 1
0
 public override void Success()
 {
     questManager.AddPoints(points);
     questManager.questPointer.DestroyPointer(this.pointer);
     questObject.SetActive(false);
     DestroySelf();
     questManager.activeQuests.Add(Utils.twoPlayerQuestIndex);
 }
Exemplo n.º 2
0
        public override void Success()
        {
            questManager.AddPoints(points);

            GameObject destroyedRock = Instantiate(this.destroyedRockObject, this.questObject.transform.Find("Rock").gameObject.transform.position, this.questObject.transform.Find("Rock").gameObject.transform.rotation);

            destroyedRock.name = "DestroyedRock";
            destroyedRock.transform.SetParent(this.questObject.transform);

            this.questObject.transform.Find("Rock").gameObject.SetActive(false);
            Destroy(this.questObject.transform.Find("Rock").gameObject);

            questManager.AddPoints(points);
            questManager.questPointer.DestroyPointer(this.pointer);
            DestroySelf();

            questManager.activeQuests.Add(Utils.rockDestroyQuestIndex);
            questManager.activeQuests.Add(Utils.bearFeedQuestIndex);
        }
Exemplo n.º 3
0
 public override void Success()
 {
     animalToSave.GetComponent <AiFoxController>().EnableMovement();
     animalToSave.GetComponents <AudioSource>()[0].Play();
     questManager.AddPoints(points);
     questManager.questPointer.DestroyPointer(this.pointer);
     DestroyPrefab();
     DestroySelf();
     questManager.AddAnimalToSave(animalToSave);
 }
Exemplo n.º 4
0
        public override void Success()
        {
            questManager.questPointer.DestroyPointer(this.pointer);
            questManager.AddPoints(points);

            StopParticles();
            flameSound.Stop();
            extinguishSound.Play();

            DestroyPrefab();
            DestroySelf();
            questManager.AddFlamableTree(treeToBeBurnt);
        }
Exemplo n.º 5
0
 public override void Success()
 {
     questManager.AddPoints(points);
     Debug.Log("Succ");
     DestroySelf();
 }