コード例 #1
0
    public void CallPanelChooseMap()
    {
        _SoundControler.PlayClickSound(true);
        _GameControler           = FindObjectOfType <GameControler>();
        _GameControler._TypeGame = 1;
        PanelChooseMap panel = _PanelChooseMap.GetComponent <PanelChooseMap>();

        panel.LoadMapInfo();
        _animPanelChooseMap.enabled = true;
        _animPanelChooseMap.Play("PanelChooseMapIn");
    }
コード例 #2
0
    public void CallPanelChooseMap(int level)
    {
        GameControler gameControler = FindObjectOfType <GameControler>();

        gameControler._Level = level;
        PanelChooseMap panel = _PanelChooseMap.GetComponent <PanelChooseMap>();

        panel.LoadMapInfo();
        _SoundControler.PlayClickSound(true);
        //enable the animator component
        _animChooseMap.enabled = true;
        //play the Slidein animation
        _animChooseMap.Play("PanelChooseMapIn");

        //freeze the timescale
        // Time.timeScale = 0;
    }