[A] test
This commit is contained in:
@@ -3,17 +3,21 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class TestUI : MonoBehaviour
|
||||
{
|
||||
public TMP_Dropdown QualityDropdown;
|
||||
public TMP_Dropdown waterSwitch;
|
||||
public Toggle toggle;
|
||||
|
||||
public GameObject[] Waters;
|
||||
public GameObject watersObj;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
InitDropdown();
|
||||
toggle.onValueChanged.AddListener(value => watersObj.SetActive(value));
|
||||
}
|
||||
|
||||
private void InitDropdown()
|
||||
|
||||
Reference in New Issue
Block a user