
场景:【序章-家中】 1.更换电报机UI层图片,并使按下打码键后,电报机把手按下,松开则弹起。 2.更新操作地图,使得玩家操作电报机时将无法走动。 场景:【序章-战场】 1.替换场景美术素材为新 2.使电话线断除被修好后,图片插件打开 3.修改地形 场景【测试】 1.导入了麒哥动画包
36 lines
930 B
C#
36 lines
930 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using Fungus;
|
|
|
|
public class Father : NormalInvestableItems
|
|
{
|
|
// Start is called before the first frame update
|
|
//父亲类,控制父亲作为可对话对象那会儿的父亲
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public override void OnCall()
|
|
{
|
|
//Debug.Log("我触发了和父亲的对话");
|
|
Flowchart.BroadcastFungusMessage("与父亲对话");
|
|
}
|
|
|
|
public void OnTalkToSonEnd()
|
|
{
|
|
//当父亲和儿子第一次对话结束
|
|
m_interface.SetActive(true);//打开电报机界面
|
|
M_Player player = FindObjectOfType<M_Player>();//找到玩家
|
|
player.catched = m_interface.GetComponent<Machine>();//把电报机塞给玩家
|
|
m_interface.GetComponent<Machine>().OnCall();//呼出电报机
|
|
}
|
|
}
|