CangJie/Assets/Scripts//HuangDi.cs

31 lines
705 B
C#
Raw Normal View History

2022-03-13 23:27:31 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Sirenix.OdinInspector;
/// <summary>
/// 皇帝类,控制皇帝的行为,继承自可交互物体
/// </summary>
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;
}
}