rabidus-test/Assets/Plugins/QFSW/Quantum Console/Source/Demo Scene/Scripts/Gate.cs

16 lines
354 B
C#

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