Roman 380b3ef38a 任务:替换现有美术素材和动画、完善游戏的流程化
*导入了麒哥动画包7
场景【序章-家中】
1.替换他老爹坐着的素材,并赋予动画
2.修复无论哪一个多态都可以跟门互动的Bug
3.老爹离家后,摧毁电报机
4.修正多态初始设置的角色位置,解决刚开场景时角色会有一小段下坠的问题
5.修复玩家触发对话时还能移动的问题
6.创建对话【开门演出开幕】,并使其在场景多态初始化时触发

场景【序章-战场】
1.给老爹加上跑动的动画
2.给老爹加上下坑和上坑动画
3.使得修电话线的进圆形进度UI会跟随玩家
4.调整导弹阴影高度
2021-08-27 01:47:46 +08:00

39 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Fungus;
using UnityEngine.InputSystem;
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("与父亲对话");
//关闭玩家的操作地图
FindObjectOfType<M_Player>().GetComponent<PlayerInput>().SwitchCurrentActionMap("NullMap");
}
public void OnTalkToSonEnd()
{
//当父亲和儿子第一次对话结束
m_interface.SetActive(true);//打开电报机界面
M_Player player = FindObjectOfType<M_Player>();//找到玩家
player.catched = m_interface.GetComponent<Machine>();//把电报机塞给玩家
m_interface.GetComponent<Machine>().OnCall();//呼出电报机
}
}