feat: 게임 인트로 씬 추가 작업
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TON
|
||||
{
|
||||
public class IntroStoryDataManager : MonoBehaviour
|
||||
{
|
||||
public List<IntroStoryData> introStories { get; private set; }
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
LoadIntroStoryData();
|
||||
}
|
||||
|
||||
private void LoadIntroStoryData()
|
||||
{
|
||||
introStories = JSONLoader.LoadFromResources<List<IntroStoryData>>("intro_story");
|
||||
if (introStories == null)
|
||||
{
|
||||
introStories = new List<IntroStoryData>();
|
||||
Debug.LogError("스토리 데이터 로드 실패");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 17c8388c9ee8b344a9d9064f6df90982
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user