コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        BT_EASY.SetActive(LevelVisible);
        BT_NORMAL.SetActive(LevelVisible);
        BT_HARD.SetActive(LevelVisible);
        BT_EXTREME.SetActive(LevelVisible);
        BT_4.SetActive(BoardVisible);
        BT_3.SetActive(BoardVisible);
        BT_2.SetActive(BoardVisible);
        BT_PLAYER_2.SetActive(PlayerVisible);
        BT_COMPUTER.SetActive(PlayerVisible);
        BT_SINGLE.SetActive(PlayerVisible);
        BoardScript.txt.text = BOARD != 6 ? BOARD + "x" + BOARD : "3x2";

        PlayerScript.txt.text = PLAYER;

        switch (LEVEL)
        {
        case 1:
            LevelScript.txt.text = "EASY";
            break;

        case 2:
            LevelScript.txt.text = "NORMAL";
            break;

        case 3:
            LevelScript.txt.text = "HARD";
            break;

        case 4:
            LevelScript.txt.text = "EXTREME";
            break;
        }
    }
コード例 #2
0
 void Start()
 {
     BT_EASY.SetActive(LevelVisible);
     BT_NORMAL.SetActive(LevelVisible);
     BT_HARD.SetActive(LevelVisible);
     BT_EXTREME.SetActive(LevelVisible);
     BT_2.SetActive(BoardVisible);
     BT_3.SetActive(BoardVisible);
     BT_4.SetActive(BoardVisible);
     BT_PLAYER_2.SetActive(PlayerVisible);
     BT_COMPUTER.SetActive(PlayerVisible);
     BT_SINGLE.SetActive(PlayerVisible);
 }