
*修复若干Bug 场景:【序章-家中】 1.创建事件【当打完码且完成对话】,即切换场景之前需要做的事。 2.编写事件【当打完码且完成对话】的逻辑。 3.在打完码且完成对话后,向记录者发信,改变演出名为【序章-战场】 场景【序章-战场】 4.完善【假电报机】逻辑 场景【序章-家中】 5.创建对话【回忆之后的对话】,并填充内容。 6.创建事件【完成回忆后对话之后】 7.创建事件【多态:序章-家中-已打码】,并完成逻辑。 *为了调试方便,我把【序章-战场】中的电话线系统作了调整,现在不用修直接和假电报机交互就能进入下一个场景。(修了反而不能正常进入下一个场景)
28 lines
656 B
C#
28 lines
656 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
public class WhenTheCodeAndConversationAreCompleted : Event
|
|
{
|
|
// Start is called before the first frame update
|
|
//事件,当在序章中完成教学并且完成和父亲的第二段对话后
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
|
|
public override void OnCall()
|
|
{
|
|
IndexRecoder indexRecoder = FindObjectOfType<IndexRecoder>();
|
|
indexRecoder.ChangeStageName("序章-战场");
|
|
SceneManager.LoadScene("序章-战场");
|
|
}
|
|
}
|