using System.Collections; using System.Collections.Generic; using UnityEngine; using Sirenix.OdinInspector; /// /// 绳结类,继承自可交互物体 /// public class Kont : Interactable { /// /// 自身绳结类型 /// [EnumPaging][Header("自身绳结类型")] public KnotMediator.KnotType type; public override void OnCall() { // 如果绳结类型为空,则报错 if (type == KnotMediator.KnotType.None) { Debug.LogError("绳结类型为空,请设置绳结类型"); return; } //切换记录的绳结类型 KnotMediator.Instance.RecordKnotType(type); } }