Warcorrespondents/Assets/Scripts/NormalInvestableItems.cs
Roman 78c7a17509 1.我修改了Fungus内部脚本,使得游戏可以监听手柄按键A或者键盘J键来经行下一句。
2.我发现了Fungus的外部接入接口,使得我可以自定义对话结束后的操作。位置在Block内部
2021-07-07 00:33:07 +08:00

26 lines
499 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
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public override void OnCall()
{
Debug.Log("我触发了"+ gameObject.name +"的对话");
Flowchart.BroadcastFungusMessage("谈论" + gameObject.name);
}
}