Logo
Explore Help
Register Sign In
saipo/Warcorrespondents
1
0
Fork 0
You've already forked Warcorrespondents
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Warcorrespondents/Assets/Scripts/具象物体/Door.cs

15 lines
364 B
C#
Raw Normal View History

任务:推进游戏的流程化 场景:【序章-家中】 1.创建脚本【Door】,用来编写门相关 2.创建CG【暂用-战友】 3.优化脚本【CG管理员】,使其可以自动寻找CG,不用再手动拖入 4.优化脚本【ACG】,使其可以应付没有结束事件的CG 5.创建多态【准备出发】 6.创建事件【当播完开门演出】 7.优化一个很重要的基类【一般可交互物体】,使其可以对付排布密集的可交互的情况 下班。至此,完成了序章的流程框架,还有很多细节需要后面扣。明天一定会开始搭建第一关,因为游戏系统之前已经写了大概,应该不会很困难。加油吧。🙏
2021-08-15 01:32:33 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Door : Interactive
{
//可交互对象:门的控制类
public override void OnCall()
{
//当门被唤醒,显示CG
CGAdministrator administrator = FindObjectOfType<CGAdministrator>();
administrator.CallACG("暂用-战友");
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 23.7.0 Page: 32ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API