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

16 lines
354 B
C#
Raw Normal View History

2023-08-22 15:41:12 +03:00
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); }
}
}
}