using System.Collections; using System.Collections.Generic; using UnityEngine; using Sirenix.OdinInspector; /// /// 皇帝类,控制皇帝的行为,继承自可交互物体 /// public class HuangDi : Interactable { [SerializeField][EnumPaging] private KnotMediator.KnotType neededType = KnotMediator.KnotType.None; public override void OnCall() { if(KnotMediator.Instance.CheckKnotType(neededType)) { Debug.Log("皇帝接受了绳结"); } else { Debug.Log("皇帝拒绝了绳结"); } } public void setNeededType(KnotMediator.KnotType type) { neededType = type; } }