This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
|
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); }
|
|
}
|
|
}
|
|
}
|