上传框架,上传unitask
This commit is contained in:
@@ -1,29 +1,66 @@
|
||||
using System;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
namespace Stary.Evo
|
||||
{
|
||||
[Serializable]
|
||||
[CreateAssetMenu(fileName = "DomainConfig", menuName = "Evo/Create DomainConfig")]
|
||||
public class DomainConfig : ScriptableObject
|
||||
public class DomainConfig : SerializedScriptableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// 域id
|
||||
/// </summary>
|
||||
public string domain;
|
||||
[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;
|
||||
/// <summary>
|
||||
/// 入口命名空间
|
||||
/// </summary>
|
||||
public string @namespace;
|
||||
/// <summary>
|
||||
/// 入口类
|
||||
/// </summary>
|
||||
public string className;
|
||||
|
||||
[ShowIf("loadResType", LoadResType.Scene)]
|
||||
public string mainScene;
|
||||
|
||||
|
||||
// [ShowIfGroup("loadResType", LoadResType.Prefab)]
|
||||
// public PonitPrefabType ponitPrefabType;
|
||||
|
||||
// [ShowIfGroup("loadResType", LoadResType.Prefab)]
|
||||
// [ShowIf("ponitPrefabType", PonitPrefabType.Plural)]
|
||||
// [OnCollectionChanged("OnPointConfDichChanged")]
|
||||
// public Dictionary<string, string> PonitConfDic = new Dictionary<string, string>();
|
||||
|
||||
|
||||
// private void OnPointConfDichChanged(CollectionChangeInfo info, object value)
|
||||
// {
|
||||
// Debug.Log("Received callback BEFORE CHANGE with the following info: " + info +
|
||||
// ", and the following collection instance: " + value);
|
||||
// }
|
||||
|
||||
|
||||
public enum LoadResType
|
||||
{
|
||||
Prefab,
|
||||
Scene
|
||||
}
|
||||
|
||||
// public enum PonitPrefabType
|
||||
// {
|
||||
// Single,
|
||||
// Plural
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user