
1.创建场景【第一关】
场景【第一关】中:
2.引入场景草图
3.编辑地面碰撞盒
4.加入角色
5.加入对话【谈论地图】
下班,UI上遇到了一些问题,折腾了很久。要做不完了?加油嗷。🙏
27 lines
598 B
C#
27 lines
598 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
|
||
//普通可调查对象的类,用在按F可以触发调查对话的对象上💬
|
||
public string itemName;
|
||
void Start()
|
||
{
|
||
|
||
}
|
||
|
||
// Update is called once per frame
|
||
void Update()
|
||
{
|
||
}
|
||
|
||
public override void OnCall()
|
||
{
|
||
Debug.Log("我触发了"+ gameObject.name +"的对话");
|
||
Flowchart.BroadcastFungusMessage("谈论" + itemName);
|
||
}
|
||
}
|