49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace Stary.Evo
|
|
{
|
|
[Serializable]
|
|
[CreateAssetMenu(fileName = "DomainConfig", menuName = "Evo/Create DomainConfig")]
|
|
public class DomainConfig : SerializedScriptableObject
|
|
{
|
|
/// <summary>
|
|
/// 域id
|
|
/// </summary>
|
|
[Sirenix.OdinInspector.ReadOnly] public string domain;
|
|
|
|
/// <summary>
|
|
/// 入口命名空间
|
|
/// </summary>
|
|
[Sirenix.OdinInspector.ReadOnly] public string @namespace;
|
|
|
|
/// <summary>
|
|
/// 入口类
|
|
/// </summary>
|
|
[Sirenix.OdinInspector.ReadOnly] public string className;
|
|
|
|
public LoadResType loadResType;
|
|
|
|
|
|
|
|
|
|
[Sirenix.OdinInspector.ReadOnly] [ShowIf("loadResType", LoadResType.Prefab)]
|
|
/// <summary>
|
|
/// 入口预制体
|
|
/// </summary>
|
|
public string mainPrefab;
|
|
|
|
[ShowIf("loadResType", LoadResType.Scene)]
|
|
public string mainScene;
|
|
[ShowIf("loadResType", LoadResType.Scene)]
|
|
public LoadSceneMode loadSceneMode;
|
|
public enum LoadResType
|
|
{
|
|
Prefab,
|
|
Scene
|
|
}
|
|
|
|
}
|
|
} |