Esempio n. 1
0
 private bool onSplashScreenOpened(SplashScreenEvents.SplashScreenOpened evt)
 {
     if (pendingQuestSuspend)
     {
         Mascot mascot = questToMascotMap[ActiveQuest.Id];
         mascot.InteractionBehaviours.Reset();
         deactivateQuest(Quest.QuestState.Suspended);
         pendingQuestSuspend = false;
     }
     else if (pendingQuestStart || pendingQuestReplay)
     {
         if (pendingQuestReplay)
         {
             pendingQuest.Replay();
             pendingQuestReplay = false;
         }
         pendingQuest.Activate();
         Mascot mascot = questToMascotMap[pendingQuest.Id];
         mascot.ResumableQuests.Remove(pendingQuest);
         mascot.InteractionBehaviours.Reset();
         pendingQuestStart = false;
         pendingQuest      = null;
     }
     dispatcher.DispatchEvent(new TrayEvents.SelectTrayScreen("ControlsScreen"));
     return(false);
 }
Esempio n. 2
0
 private bool onSplashScreenOpened(SplashScreenEvents.SplashScreenOpened evt)
 {
     if (state == States.WaitingForSplashscreen)
     {
         setState(States.Idle);
     }
     return(false);
 }