using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using SpringGUI; using AX.TrackRecord; public class SetAreaAttribute : MonoBehaviour { internal struct PolygonData { public float PrevHeight; public float CurrHeight; public float SliderValue; } public static SetAreaAttribute Instance; public ColorPicker colorPicker; public MainColorTape mainColorTape; InputField fieldAreaName; Slider sliderHeight; Button btnClose; GameObject objArea; private Dictionary container = new Dictionary(); private float prevHeight = 0f; private float currHeight = 0f; private void Awake() { Instance = this; } // Use this for initialization void Start() { fieldAreaName = transform.Find("InputField").GetComponent(); fieldAreaName.onValueChanged.AddListener(s => { objArea.GetComponentInChildren().SetName(s); }); sliderHeight = transform.Find("SliderK").GetComponent(); sliderHeight.maxValue = 10; sliderHeight.minValue = 0; sliderHeight.onValueChanged.AddListener(ChangeAreaHeight); btnClose = transform.Find("Close").GetComponent