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