コード例 #1
0
ファイル: GameManager.cs プロジェクト: chilscher/Cityscapes
    public void highlightBuildType()
    {
        //if the build type is set to be included, then highlight it. otherwise, highlight the build button
        disselectBuildAndNotes();

        GameObject button;

        if (clickTileAction == "Toggle Note 1" && includeNote1Btn)
        {
            button = note1Button;
        }
        else if (clickTileAction == "Toggle Note 2" && includeNote2Btn)
        {
            button = note2Button;
        }
        else if (clickTileAction == "Clear Tile")
        {
            button = clearTileButton;
        }
        else
        {
            clickTileAction = "Apply Selected";
            button          = buildButton;
        }
        InterfaceFunctions.colorPuzzleButtonOn(button);
    }
コード例 #2
0
ファイル: GameManager.cs プロジェクト: chilscher/Cityscapes
 public void hitClearButton()
 {
     //choose the clear tile selection mode
     clickTileAction = "Clear Tile";
     disselectNumber(prevClickedNumButton);
     disselectBuildAndNotes();
     foreach (PuzzleTile t in puzzleGenerator.puzzleTiles)
     {
         t.unhighlightBuildingNumber();
     }
     InterfaceFunctions.colorPuzzleButtonOn(clearTileButton);
     updateRemoveSelectedNumber();
     save();
 }
コード例 #3
0
ファイル: GameManager.cs プロジェクト: chilscher/Cityscapes
 public void hitNote1Button()
 {
     //choose the note 1 selection mode
     if (clickTileAction == "Clear Tile")
     {
         selectNumber(prevClickedNumButton);
         foreach (PuzzleTile t in puzzleGenerator.puzzleTiles)
         {
             t.highlightIfBuildingNumber(selectedNumber);
         }
     }
     clickTileAction = "Toggle Note 1";
     disselectBuildAndNotes();
     InterfaceFunctions.colorPuzzleButtonOn(note1Button);
     updateRemoveSelectedNumber();
     save();
 }
コード例 #4
0
ファイル: GameManager.cs プロジェクト: chilscher/Cityscapes
 private void selectNumber(GameObject btn)
 {
     //color chosen the number button to the "on" coloration from the current skin
     InterfaceFunctions.colorPuzzleButtonOn(btn, skin);
 }