Beispiel #1
0
 private void disableMusicinfo()
 {
     musicinfo.disable();
     left.disable();
     selectThis.disable();
     right.disable();
 }
Beispiel #2
0
 private void disableSelectmusic()
 {
     select.disable();
     music1.disable();
     music2.disable();
     music3.disable();
 }
Beispiel #3
0
 private void disableMenu()
 {
     menu.disable();
     gameStart.disable();
     login.disable();
     exit.disable();
 }
Beispiel #4
0
    public void GameResume()
    {
        Time.timeScale = 1;
        pauseMenu.disable();
        pauseButton.enable();
        resumeButton.disable();
        exitButton.disable();

        sw.Start();
        sound.Play();
    }
Beispiel #5
0
    void Start()
    {
        new screenSetting().screenSet(1920); //1920*1080
        pauseMenu    = new UiData("picturePause");
        pauseButton  = new ButtonData("pause");
        resumeButton = new ButtonData("resume");
        exitButton   = new ButtonData("exit");

        pauseMenu.disable();
        pauseButton.enable();

        resumeButton.disable();
        exitButton.disable();

        sound      = GameObject.Find("music").GetComponent <AudioSource>();
        sound.clip = Resources.Load <AudioClip>(commonData.path + "/music/" + commonData.musicName) as AudioClip;

        score = GameObject.Find("score").GetComponent <Text>();
        combo = GameObject.Find("combo").GetComponent <Text>();

        commonData.clear();

        pauseMenu.buttonShow.sprite = Resources.Load <Sprite>(commonData.path + "/sprite/background/[1280_720]pauseMenu") as Sprite;
        sound.Play();

        switch (commonData.path[commonData.path.Length - 1])
        {
        case '1':
            score.color = Color.white;
            combo.color = Color.white;
            break;

        case '2':
            score.color = Color.white;
            combo.color = Color.gray;
            break;

        case '3':
            score.color = Color.blue;
            combo.color = Color.blue;
            break;
        }
        sw = new Stopwatch();
        sw.Start();
    }
Beispiel #6
0
 private void disableBack()
 {
     back.disable();
     backbutton.disable();
 }
    // 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();
    }