This commit is contained in:
2026-06-15 18:18:16 +08:00
parent 97c9fba14e
commit 2b9f134e5f
4164 changed files with 386922 additions and 79 deletions

View File

@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace Best.HTTP.Examples.Helpers.SelectorUI
{
sealed class ExampleInfo : MonoBehaviour
{
#pragma warning disable 0649
[SerializeField]
private Text _header;
[SerializeField]
private Text _description;
#pragma warning restore
private SampleSelectorUI _parentUI;
private SampleBase _example;
public void Setup(SampleSelectorUI parentUI, SampleBase example)
{
this._parentUI = parentUI;
this._example = example;
this._header.text = this._example.name;
this._description.text = this._example.Description;
}
public void OnExecuteExample()
{
this._parentUI.ExecuteExample(this._example);
}
}
}