using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; namespace VketCloudGUITools.Runtime { public class SetShowLayerGUIAction : GUIAction { public override string FuncName { get => "SetShowLayer"; set { // do nothing } } public override string ActionName { get => _actionName; set => _actionName = value; } public string LayerName { get => _layerName; set => _layerName = value; } public bool Show { get => _show; set => _show = value; } public override Dictionary GetActionValues { get { var dict = new Dictionary(); dict.Add("Name", _layerName); dict.Add("Show", _show); return dict; } } public override string GetDebugInfo() { return $"{FuncName}/{ActionName}(LayerName:{LayerName}, Show:{Show})"; } [SerializeField] private string _actionName = "SetShowLayer"; [SerializeField] private string _layerName = string.Empty; [SerializeField] private bool _show = true; public override object Clone() { var clone = CreateInstance(); clone.ActionName = ActionName; clone.LayerName = LayerName; clone.Show = Show; return clone; } } }