整理核心代码和资源

This commit is contained in:
yangjing 2022-02-16 16:30:04 +08:00
parent e4751f2726
commit ce949b475a
47 changed files with 40 additions and 3 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 752b543a3e4114c119db5a59b1c3a9d3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -75,6 +75,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 5195663044226207340}
- component: {fileID: 3015936537535145384}
m_Layer: 5
m_Name: UIRoot
m_TagString: Untagged
@ -101,6 +102,18 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3015936537535145384
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5195663044226207331}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5a7353a4fbe34fde8272bf21e0b8bc2, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &5195663044295154646
GameObject:
m_ObjectHideFlags: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 42c9c63c7642b45ca996759df7ba8bd9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -9,7 +9,7 @@ public class ConfigBase<T> : ScriptableObject where T :ScriptableObject
{
if (mInstance == null)
{
mInstance = Resources.Load<T>(typeof(T).ToString());
mInstance = Resources.Load<T>("Config/" + typeof(T).ToString());
}
return mInstance;

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class UIListCell : MonoBehaviour
public class ListCell : MonoBehaviour
{
public int Index => mIndex;

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public abstract class UIListView<T> : MonoBehaviour, IListView where T : UIListCell
public abstract class ListView<T> : MonoBehaviour, IListView where T : ListCell
{
public abstract int Count
{

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 09e2bcea44ca94bff867839de7c98977
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: