// Metodo que lanza el panel enviado como parametro al finalizar el juego public void ShowPanel(int panel) { HideElementsUI(); switch (panel) { case Config.PNL_WIN: pnlWin.SetActive(true); break; case Config.PNL_LEVEL_UP: pnlLevelUp.SetActive(true); break; case Config.PNL_GAME_OVER: pnlGameOver.SetActive(true); break; case Config.PNL_HELP: ProgressTime.getInstance().CountingTime = false; pnlHelp.SetActive(true); break; default: ProgressTime.getInstance().CountingTime = true; pnlOptions.SetActive(true); pnlClock.SetActive(true); infoPlayer.SetActive(true); controlls.SetActive(true); pnlHelp.SetActive(false); break; } }
// Use this for initialization void Start() { instance = this; imgProgressTime = this.GetComponent <Image>(); }