-
Notifications
You must be signed in to change notification settings - Fork 2
Scene Management
gyeongdong yu edited this page Apr 26, 2023
·
12 revisions
이벤트(전투와 같은 각종 이벤트)를 관리, 실행 하는 객체
씬이동과 이벤트 UI(혹은 다른 객체)를 띄우고 실행할 수 있다.
Dictionary<string, event> _events
: string으로 찾을 수 해당 이벤트를 찾을 수 있게 key, value로 저장하는 Dictionary를 사용했다.
-
BattleStart()
: 전투 씬으로 넘어가는 메서드 -
GameOver()
: 종료 씬으로 넘어가는 메서드 -
EventAction(string)
: string으로 들어오는 인자에 해당하는 이벤트를 찾고 해당 이벤트를 호출
다양한 이벤트 클래스들이 상속받을 기반 클래스로 UI창을 띄울수 있다. UI 구성은 자식 클래스에서 구현