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"); }
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; }