您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
29 行
820 B
29 行
820 B
using UnityEngine;
|
|
using UnityEngine.AddressableAssets;
|
|
|
|
/// <summary>
|
|
/// This class is a base class which contains what is common to all game scenes (Locations, Menus, Managers)
|
|
/// </summary>
|
|
public class GameSceneSO : DescriptionBaseSO
|
|
{
|
|
public GameSceneType sceneType;
|
|
public AssetReference sceneReference; //Used at runtime to load the scene from the right AssetBundle
|
|
|
|
/// <summary>
|
|
/// Used by the SceneSelector tool to discern what type of scene it needs to load
|
|
/// </summary>
|
|
public enum GameSceneType
|
|
{
|
|
//Playable scenes
|
|
Location, //SceneSelector tool will also load PersistentManagers and Gameplay
|
|
Menu, //SceneSelector tool will also load Gameplay
|
|
|
|
//Special scenes
|
|
Initialisation,
|
|
PersistentManagers,
|
|
Gameplay,
|
|
|
|
//Work in progress scenes that don't need to be played
|
|
Art,
|
|
}
|
|
}
|