Removed Many Things

This commit is contained in:
CortexCore
2024-08-13 18:42:51 +08:00
parent c563c539a5
commit 79985ad6f5
1363 changed files with 5892 additions and 71512 deletions

View File

@@ -21,7 +21,7 @@ namespace BITKit
{
if (_singleton == null)
{
_singleton = ScriptableObjectHelper.Get<DictionaryReferenceScriptableObject>();
//_singleton = ScriptableObjectHelper.Get<DictionaryReferenceScriptableObject>();
}
return _singleton;
}

View File

@@ -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
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 69820685192a7b140b6034ec1d0e585e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -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);
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 0aacb187504b6ec4cb3c402a9337e557
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: