using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

public class UI_PracticeCompletedPanel : BasePanel
{

    public UI_PracticeInfoItem piiPrefab;
    public RectTransform content;
    public void Init()
    {
        UI_PracticeInfoItem temp = Instantiate(piiPrefab, content);
        GetControl<TextMeshProUGUI>("UsedTimesRes").text = "00:555";
        GetControl<TextMeshProUGUI>("ScoreRes").text = "123";
    }

    protected override void OnClick(string btnName)
    {
        switch (btnName)
        {
            case "restartBtn":
                GameManager.Instance.Practice();
                break;
            case "backBtn":
                GameManager.Instance.ShowUIPanelAndLoadScene(true);
                break;
            case "closeBtn":
                break;
            default:
                break;
        }
        GameManager.UIMgr.HidePanel<UI_PracticeCompletedPanel>();
    }
}