16 lines
354 B
C#
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); }
|
|||
|
}
|
|||
|
}
|
|||
|
}
|