2022-03-25 23:39:57 +08:00

29 lines
713 B
C#

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