コード例 #1
0
    public void lockAll()
    {
        //lock all is also only used during testing
        StaticVariables.unlockedMedium      = false;
        StaticVariables.unlockedLarge       = false;
        StaticVariables.unlockedHuge        = false;
        StaticVariables.highestUnlockedSize = 3;
        StaticVariables.showMed             = false;
        StaticVariables.showLarge           = false;
        StaticVariables.showHuge            = false;

        StaticVariables.unlockedNotes1 = false;
        StaticVariables.unlockedNotes2 = false;
        StaticVariables.unlockedResidentsChangeColor = false;
        StaticVariables.unlockedUndoRedo             = false;
        StaticVariables.unlockedRemoveAllOfNumber    = false;
        StaticVariables.unlockedClearPuzzle          = false;
        StaticVariables.unlockedHighlightBuildings   = false;

        StaticVariables.includeNotes1Button = false;
        StaticVariables.includeNotes2Button = false;
        StaticVariables.changeResidentColorOnCorrectRows = false;
        StaticVariables.includeUndoRedo           = false;
        StaticVariables.includeRemoveAllOfNumber  = false;
        StaticVariables.includeClearPuzzle        = false;
        StaticVariables.includeHighlightBuildings = false;

        StaticVariables.unlockedSkins = new List <Skin>();
        StaticVariables.skin          = InterfaceFunctions.getDefaultSkin();
        background.GetComponent <SpriteRenderer>().sprite = StaticVariables.skin.shopBackground;
        InterfaceFunctions.colorMenuButton(menuButton);
        updateButtons();
    }
コード例 #2
0
 private static void firstTimePlayingEver()
 {
     //if this is the first time that the player has opened the game, load the default values for some staticVariables elements
     StaticVariables.skin  = InterfaceFunctions.getDefaultSkin();
     StaticVariables.coins = 0;
     StaticVariables.highestUnlockedSize = 3;
     SaveGame();
     LoadGame();
 }
コード例 #3
0
 private void unlockAllSkins()
 {
     //unlockAllSkins is also only used during testing
     foreach (Skin skin in StaticVariables.allSkins)
     {
         if (skin != InterfaceFunctions.getDefaultSkin() && !StaticVariables.unlockedSkins.Contains(skin))
         {
             StaticVariables.unlockedSkins.Add(skin);
         }
     }
 }
コード例 #4
0
ファイル: SideHintTile.cs プロジェクト: chilscher/Cityscapes
 public void setNumberColors()
 {
     //sets the colors that the SideHintTile number can be, based off of the current skin.
     //the tutorial uses its own colors, which are the ones used in the basic skin
     if (!StaticVariables.isTutorial)
     {
         ColorUtility.TryParseHtmlString(StaticVariables.skin.citizenColor, out incorrectColor);
         ColorUtility.TryParseHtmlString(StaticVariables.skin.satisfiedCitizenColor, out correctColor);
     }
     else
     {
         ColorUtility.TryParseHtmlString(InterfaceFunctions.getDefaultSkin().citizenColor, out incorrectColor);
         ColorUtility.TryParseHtmlString(InterfaceFunctions.getDefaultSkin().satisfiedCitizenColor, out correctColor);
     }
 }