Skip to content

EventInfoSO

김광수 edited this page Oct 11, 2023 · 2 revisions

< Readme

EventInfoSO

Event의 정보를 저장할 ScriptableObject

Code Summary

  • eventName

    • 이벤트 이름
  • eventInfo

    • 이벤트 내용
  • selectEventInfo

    • 이벤트의 선택지를 리스트로 관리
  • selectEventFunc

    • 이벤트의 메서드를 리스트로 관리

Code

using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "EventData", menuName = "Data/EventData", order = 0)]
public class EventInfoSO : ScriptableObject
{
    public string eventName;
    public string eventInfo;
    public List<string> selectEventInfo = new List<string>();
    public List<EventFuncSO> selectEventFunc = new List<EventFuncSO>();

}

Clone this wiki locally