Esempio n. 1
0
 //Activate the event and it's objects if interactIfTalkedTo is enabled
 public void ActivateEvent(int[] eventID)
 {
     for (int i = 0; i < eventID.Length; i++)
     {
         EventManager.instance.ActivateEvent(eventID[i]);
         if (eventActivator != null)
         {
             eventActivator.ActivateObjectsOnEventOn(eventID[i]);
         }
     }
 }
 public void AnswerQuestionYes()
 {
     //Activate the event specified
     if (shouldDeactivateEvent)
     {
         EventManager.instance.DisableEvent(eventID);
         activateObjectsOnEvent.DeactivateObjectsOnEventOff(eventID);
     }
     else
     {
         EventManager.instance.ActivateEvent(eventID);
         activateObjectsOnEvent.ActivateObjectsOnEventOn(eventID);
     }
     AudioController.instance.PlaySFX(0);
     questionPanel.SetActive(false);
     GameManager.instance.textActive = false;
     eventID = -1;
 }