using UnityEngine; namespace QFSW.QC.Demo { [CommandPrefix("demo.gate.")] public class Gate : MonoBehaviour { [Command("opened")] private bool IsOpened { get { return GetComponent().GetBool("opened"); } set { GetComponent().SetBool("opened", value); } } } }