Пример #1
0
 private bool isCharacterPresentAtCurrentLocation(Character character, int timeOfDayToCheck)
 {
     if (character.locations[timeOfDayToCheck].locationName.ToLower().Equals(mySceneCatalogue.getCurrentSceneName().ToLower()) && character.locations[timeOfDayToCheck].isInside.Equals(mySceneCatalogue.getIsInInteriorScene()))
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
    public void highlightCurrentLocation()
    {
        Button[] allButtons = myMapPanel.GetComponentsInChildren <Button>();

        foreach (Button b in allButtons)
        {
            b.GetComponent <Image>().color = Color.white;

            if (mySceneCatalogue.getCurrentSceneName() == b.GetComponentInChildren <Text>().text)
            {
                b.GetComponent <Image>().color = Color.cyan;
            }
        }
    }
 private void checkStartDate()
 {
     if (myGameState.currentGameState == GameState.gameStates.PROWL)
     {
         if (mySceneCatalogue.getIsInInteriorScene())
         {
             if (hasDateAtPresentTimeInPresentLocationAndDateNotOver())
             {
                 isAtDate = true;
                 myAudioConductor.startMusic(mySceneCatalogue.getCurrentSceneName(), myTimelord.getCurrentModulusTimestep());
                 myGameState.currentGameState = GameState.gameStates.DATEINTRO;
                 myEventQueue.queueEvent(new EventDateStart());
                 DateableCharacter datePartner = this.getDatePartner(mySceneCatalogue.getCurrentLocation(), myTimelord.getCurrentTimestep());
                 datePartner.dateCount++;
             }
         }
     }
 }
Пример #4
0
 public bool checkTutorialConditionsMet()
 {
     return(tutorialComplete == false && mySceneCatalogue.getIsInInteriorScene() == true && mySceneCatalogue.getCurrentSceneName() == "City" && myTimeLord.getCurrentModulusTimestep() == 0);
 }