这是第一个 Unity 开放项目的repo,是 Unity 和社区合作创建的一个小型开源游戏演示,第一款游戏是一款名为 Chop Chop 的动作冒险游戏。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

30 行
851 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
public AudioCueSO musicTrack;
/// <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,
}
}