示例#1
0
 void IEventSubscriber.eventOccurred(IGameEvent occurringEvent)
 {
     if (occurringEvent.getEventType() == "TIMEEVENT")
     {
         myAnimationMaestro.fadeInCharacters(myDialogueManager.getAllCurrentLocalPresentConversationPartners());
         reactivateButtonFadingInIfCharactersPresent(timeAdvanceButton, 0.6f);
     }
     else if (occurringEvent.getEventType() == "LOCATIONEVENT")
     {
         myAnimationMaestro.fadeInCharacters(myDialogueManager.getAllCurrentLocalPresentConversationPartners());
         reactivateButtonFadingInIfCharactersPresent(toggleInteriorSceneButton, 0.6f);
     }
     else if (occurringEvent.getEventType() == "SEQUENCEENDEVENT")
     {
         reactivateButtonFadingInIfCharactersPresent(timeAdvanceButton, 0.0f);
         reactivateButtonFadingInIfCharactersPresent(toggleInteriorSceneButton, 0.0f);
     }
     else if (occurringEvent.getEventType() == "DATESTARTEVENT")
     {
         myAnimationMaestro.fadeInCharacters(new List <Character>()
         {
             myRelationshipCounselor.getDatePartner(mySceneCatalogue.getCurrentLocation(), myTimelord.getCurrentTimestep())
         });
     }
     else if (occurringEvent.getEventType() == "DATEACTIONEVENT")
     {
         mySceneCatalogue.getCurrentLocation().setRandomDateAction();
     }
 }
示例#2
0
 void IEventSubscriber.eventOccurred(IGameEvent occurringEvent)
 {
     if (occurringEvent.getEventType() == "TIMEEVENT")
     {
         this.setAbsentCharactersToPresent();
     }
     selectedPartner = -1;
 }
示例#3
0
 public void eventOccurred(IGameEvent occurringEvent)
 {
     //testResultsText.text += "Event: " + occurringEvent.getEventType() + " ok.\n";
     if (occurringEvent.getEventType() == "LOCATIONEVENT")
     {
         testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n";
     }
     else if (occurringEvent.getEventType() == "TIMEEVENT")
     {
         testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n";
     }
     else if (occurringEvent.getEventType() == "DATESTARTEVENT")
     {
         testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n";
     }
     else if (occurringEvent.getEventType() == "DATEACTIONEVENT")
     {
         testResultsText.text += "Event: " + occurringEvent.getEventType() + " Ok.\n";
     }
 }