Removed Many Things
This commit is contained in:
@@ -21,7 +21,7 @@ namespace BITKit
|
||||
{
|
||||
if (_singleton == null)
|
||||
{
|
||||
_singleton = ScriptableObjectHelper.Get<DictionaryReferenceScriptableObject>();
|
||||
//_singleton = ScriptableObjectHelper.Get<DictionaryReferenceScriptableObject>();
|
||||
}
|
||||
return _singleton;
|
||||
}
|
||||
|
@@ -1,44 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
using UnityEditor.UIElements;
|
||||
#endif
|
||||
namespace BITKit
|
||||
{
|
||||
[System.Serializable]
|
||||
public class ReferenceSO : ScriptableObject
|
||||
{
|
||||
[TextArea]
|
||||
public string value;
|
||||
}
|
||||
[System.Serializable]
|
||||
public record ReferenceScriptableObject : References
|
||||
{
|
||||
public ReferenceSO so;
|
||||
public override string Get() => so.value.IsNullOrEmpty() ? so.name : so.value;
|
||||
}
|
||||
// #if UNITY_EDITOR
|
||||
// [CustomPropertyDrawer(typeof(ReferenceScriptableObject))]
|
||||
// public class ReferenceScriptableObjectDrawer : BITProperty
|
||||
// {
|
||||
// public override VisualElement CreatePropertyGUI(SerializedProperty property)
|
||||
// {
|
||||
// VisualElement root = new();
|
||||
// root.Add(base.CreatePropertyGUI(property));
|
||||
//
|
||||
// Button button = new();
|
||||
// root.Add(button);
|
||||
// return root;
|
||||
// }
|
||||
// public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
|
||||
// {
|
||||
// base.OnGUI(position, property, label);
|
||||
// EditorGUI.PropertyField(position, property);
|
||||
// EditorGUI.LinkButton(position, "New Button");
|
||||
// }
|
||||
// }
|
||||
// #endif
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69820685192a7b140b6034ec1d0e585e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
[Serializable]
|
||||
public sealed class TranslateReference:IReference
|
||||
{
|
||||
[SerializeReference, SubclassSelector] private IReference key;
|
||||
public string Get()
|
||||
{
|
||||
return ScriptableObjectHelper.Get<TranslateSO>().GetAt(key.Value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0aacb187504b6ec4cb3c402a9337e557
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user