コード例 #1
0
 private void enableMusicinfo()
 {
     musicinfo.enable();
     left.enable();
     selectThis.enable();
     right.enable();
 }
コード例 #2
0
 private void enableSelectmusic()
 {
     select.enable();
     music1.enable();
     music2.enable();
     music3.enable();
 }
コード例 #3
0
    /*private void OnDrag(Vector2 delta)
     * {
     *  if(musicinfo.buttonShow == true)
     *  {
     *      if (delta.x < 0 && stage > 1)
     *          stage--;
     *      else if (delta.x > 0 && stage < 2)
     *          stage++;
     *  }
     * }*/

    private void enableMenu()
    {
        menu.enable();
        gameStart.enable();
        login.enable();
        exit.enable();
    }
コード例 #4
0
    public void GamePause()
    {
        Time.timeScale = 0;
        pauseMenu.enable();
        pauseButton.disable();
        resumeButton.enable();
        exitButton.enable();

        sw.Stop();
        sound.Pause();
    }
コード例 #5
0
 private void enableBack()
 {
     back.enable();
     backbutton.enable();
 }
コード例 #6
0
    // Start is called before the first frame update
    void Start()
    {
        new screenSetting().screenSet(1920);

        acti1 = new UiData("1000");
        acti2 = new UiData("1100");
        acti3 = new UiData("1110");
        acti4 = new UiData("1111");

        lock2 = new UiData("lock2");
        lock3 = new UiData("lock3");
        lock4 = new UiData("lock4");


        ch1 = new ButtonData("select1");
        ch2 = new ButtonData("select2");
        ch3 = new ButtonData("select3");
        ch4 = new ButtonData("select4");

        acti1.disable();
        acti2.disable();
        acti3.disable();
        acti4.disable();

        lock2.disable();
        lock3.disable();
        lock4.disable();



        ch1.disable();
        ch2.disable();
        ch3.disable();
        ch4.disable();
        if (commonData.Totalscore < 500)
        {
            acti1.enable();
            ch1.enable();

            lock2.enable();
            lock3.enable();
            lock4.enable();
        }
        else if (commonData.Totalscore > 500 && commonData.Totalscore < 1000)
        {
            acti2.enable();
            ch1.enable();
            ch2.enable();

            lock3.enable();
            lock4.enable();
        }
        else if (commonData.Totalscore > 1000 && commonData.Totalscore < 2000)
        {
            acti3.enable();
            ch1.enable();
            ch2.enable();
            ch3.enable();

            lock4.enable();
        }
        else
        {
            acti4.enable();
            ch1.enable();
            ch2.enable();
            ch3.enable();
            ch4.enable();
        }

        switch (commonData.character)
        {
        case "character1":
            t   = check.transform.position;
            t.x = ch1.buttonEnable.gameObject.transform.position.x;
            check.transform.position = t;
            break;

        case "character2":
            t   = check.transform.position;
            t.x = ch2.buttonEnable.gameObject.transform.position.x;
            check.transform.position = t;
            break;

        case "character3":
            t   = check.transform.position;
            t.x = ch3.buttonEnable.gameObject.transform.position.x;
            check.transform.position = t;
            break;

        case "character4":
            t   = check.transform.position;
            t.x = ch4.buttonEnable.gameObject.transform.position.x;
            check.transform.position = t;
            break;
        }

        score.text = "Total Score: " + commonData.Totalscore.ToString();
    }