Esempio n. 1
0
    void Awake()
    {
        stage = GameObject.Find("Map").GetComponent <StageController>();

        exit.onClick.AddListener(

            delegate {
            Apply();
            stage.Exit();
        }

            );

        restart.onClick.AddListener(

            delegate {
            stage.Restart();
            Apply();
        }

            );

        close.onClick.AddListener(

            delegate {
            //stage.Resume();
            stage.ShowPauseMenu(false);
            //stage.Resume();
            Apply();
        }

            );

        //v_bgm = GameObject.Find("volume_bgm").GetComponent<Slider>();
        //v_se = GameObject.Find("volume_sound").GetComponent<Slider>();
        //text_bgm = GameObject.Find("text_bgm").GetComponent<Text>();
        //text_se = GameObject.Find("text_sound").GetComponent<Text>();

        gameObject.SetActive(false);
    }
    void Awake()
    {
        stage = GameObject.Find("Map").GetComponent <StageController>();

        exit.onClick.AddListener(

            delegate {
            stage.Exit();
        }

            );

        restart.onClick.AddListener(

            delegate {
            stage.Restart();
        }

            );

        gameObject.SetActive(false);
    }