Warcorrespondents/Assets/Scripts/NormalInvestableItems.cs
Roman d498e5cc11 1.完善了场景内交互物品
2.添加了父子对话,其后的事件还需要后续攥写
3.需要添加Stage演出来增强对话的效果。明天再研究。
2021-07-08 00:10:32 +08:00

27 lines
520 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Fungus;
public class NormalInvestableItems : Interactive
{
// Start is called before the first frame update
public string itemName;
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public override void OnCall()
{
Debug.Log("我触发了"+ gameObject.name +"的对话");
Flowchart.BroadcastFungusMessage("谈论" + itemName);
}
}