- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class SelectSceneBtn : MonoBehaviour
- {
- public Toggle toggle;
- public Text label;
- public void Init(ScenesPage scene)
- {
- toggle.onValueChanged.AddListener(_=> { SelectScene.Instance.selectSceneId = scene.id; });
- label.text = scene.name;
- toggle.isOn = false;
- }
- }
|