This commit is contained in:
commit
e37c0eae1a
Binary file not shown.
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 1.8 MiB |
|
@ -1,6 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: edd8193122117604db3972af8d5f7693
|
||||
folderAsset: yes
|
||||
guid: 1350aff3bf5aa4746a58cbd6894397bb
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
|
|
|
@ -285,6 +285,311 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: d175d4b181be89546abe91f03f9dc60e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1199009562
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1199009563}
|
||||
- component: {fileID: 1199009565}
|
||||
- component: {fileID: 1199009564}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1199009563
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1199009562}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1372655023}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -137.94153, y: 15.720581}
|
||||
m_SizeDelta: {x: 200, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1199009564
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1199009562}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: New Text
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 1
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_baseMaterial: {fileID: 0}
|
||||
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||
--- !u!222 &1199009565
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1199009562}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1219112861
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1219112864}
|
||||
- component: {fileID: 1219112863}
|
||||
- component: {fileID: 1219112862}
|
||||
m_Layer: 0
|
||||
m_Name: EventSystem
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1219112862
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1219112861}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_SendPointerHoverToParent: 1
|
||||
m_HorizontalAxis: Horizontal
|
||||
m_VerticalAxis: Vertical
|
||||
m_SubmitButton: Submit
|
||||
m_CancelButton: Cancel
|
||||
m_InputActionsPerSecond: 10
|
||||
m_RepeatDelay: 0.5
|
||||
m_ForceModuleActive: 0
|
||||
--- !u!114 &1219112863
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1219112861}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_FirstSelected: {fileID: 0}
|
||||
m_sendNavigationEvents: 1
|
||||
m_DragThreshold: 10
|
||||
--- !u!4 &1219112864
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1219112861}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1372655019
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1372655023}
|
||||
- component: {fileID: 1372655022}
|
||||
- component: {fileID: 1372655021}
|
||||
- component: {fileID: 1372655020}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1372655020
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1372655019}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_IgnoreReversedGraphics: 1
|
||||
m_BlockingObjects: 0
|
||||
m_BlockingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
--- !u!114 &1372655021
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1372655019}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
m_PresetInfoIsWorld: 0
|
||||
--- !u!223 &1372655022
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1372655019}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 0
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_VertexColorAlwaysGammaSpace: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
--- !u!224 &1372655023
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1372655019}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1199009563}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!1 &1406672269
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -392,7 +697,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_Version: 1
|
||||
m_UsePipelineSettings: 1
|
||||
m_AdditionalLightsShadowResolutionTier: 2
|
||||
m_LightLayerMask: 1
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
public class TB_DeviceType
|
||||
{
|
||||
public int id;
|
||||
public string deviceTypeName;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8ec5c56a4cec13e42a88d0f9ec68a797
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,8 +1,10 @@
|
|||
public class TB_Scheme
|
||||
{
|
||||
public int id;
|
||||
public int systemId;
|
||||
public int deviceTypeId;
|
||||
public string schemeName;
|
||||
public string deviceMap;
|
||||
public string titleName;
|
||||
public string loadName;
|
||||
public string schemeDes;
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
public class TB_System
|
||||
{
|
||||
public int id;
|
||||
public string systemName;
|
||||
public string loadName;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d678f2949505d5843b33a727bc532c73
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -2,5 +2,5 @@ public class TB_ToolAndMaterial
|
|||
{
|
||||
public int id;
|
||||
public string objName;
|
||||
public string iconName;
|
||||
public string iconSpriteName;
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
public class TB_DeviceTypeContainer
|
||||
{
|
||||
public Dictionary<int, TB_DeviceType> dataDic = new Dictionary<int, TB_DeviceType>();
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f57f49b7e7506884f9b19da1d390984b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
public class TB_SystemContainer
|
||||
{
|
||||
public Dictionary<int, TB_System> dataDic = new Dictionary<int, TB_System>();
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f821b9b955f88724fa63b0a8ea716fb9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -29,6 +29,21 @@ public class DataManager : BaseManager<DataManager>
|
|||
/// </summary>
|
||||
private Dictionary<int, TB_SubProcessStep> subProcessStepDic = new Dictionary<int, TB_SubProcessStep>();
|
||||
|
||||
/// <summary>
|
||||
/// 虚拟仿真系统
|
||||
/// </summary>
|
||||
private Dictionary<int,TB_System> systemDic =new Dictionary<int, TB_System>();
|
||||
|
||||
/// <summary>
|
||||
/// 设备类型
|
||||
/// </summary>
|
||||
private Dictionary<int, TB_DeviceType> deviceTypeDic = new Dictionary<int, TB_DeviceType>();
|
||||
|
||||
/// <summary>
|
||||
/// 工具材料
|
||||
/// </summary>
|
||||
private Dictionary<int, TB_ToolAndMaterial> toolAndMaterialDic = new Dictionary<int, TB_ToolAndMaterial>();
|
||||
|
||||
/// <summary>
|
||||
/// 用户数据
|
||||
/// </summary>
|
||||
|
@ -43,6 +58,9 @@ public class DataManager : BaseManager<DataManager>
|
|||
processDic = GameManager.BinaryMgr.GetTable<TB_ProcessContainer>().dataDic;
|
||||
subProcessDic = GameManager.BinaryMgr.GetTable<TB_SubProcessContainer>().dataDic;
|
||||
subProcessStepDic = GameManager.BinaryMgr.GetTable<TB_SubProcessStepContainer>().dataDic;
|
||||
systemDic = GameManager.BinaryMgr.GetTable<TB_SystemContainer>().dataDic;
|
||||
deviceTypeDic = GameManager.BinaryMgr.GetTable<TB_DeviceTypeContainer>().dataDic;
|
||||
toolAndMaterialDic = GameManager.BinaryMgr.GetTable<TB_ToolAndMaterialContainer>().dataDic;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -144,6 +162,20 @@ public class DataManager : BaseManager<DataManager>
|
|||
return d_SubProcessSteps;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据系统Id 获取系统信息
|
||||
/// </summary>
|
||||
/// <param name="systemId"></param>
|
||||
/// <returns></returns>
|
||||
public TB_System GetSystemInfo(int systemId)
|
||||
{
|
||||
if (systemDic.ContainsKey(systemId))
|
||||
{
|
||||
return systemDic[systemId];
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取报告
|
||||
/// </summary>
|
||||
|
|
|
@ -5,6 +5,11 @@ using UnityEngine;
|
|||
/// </summary>
|
||||
public class GameManager : SingletonAutoMono<GameManager>
|
||||
{
|
||||
/// <summary>
|
||||
/// 系统Id
|
||||
/// </summary>
|
||||
public int systemId = 10001;
|
||||
|
||||
#region 底层框架内容
|
||||
/// <summary>
|
||||
/// Ui管理类
|
||||
|
|
|
@ -67,11 +67,21 @@ public class UI_LoadingPanel : BasePanel
|
|||
isUpdate = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 初始化
|
||||
/// </summary>
|
||||
public void Init()
|
||||
{
|
||||
currentProgress = 0;
|
||||
targetProgress = 0;
|
||||
isUpdate = false;
|
||||
TB_System tB_System = GameManager.DataMgr.GetSystemInfo(GameManager.Instance.systemId);
|
||||
GameManager.ResourcesMgr.LoadAsync<Sprite>(Const.LoadBGPath + tB_System.loadName, (sprite) =>
|
||||
{
|
||||
this.GetComponent<Image>().sprite = sprite;
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -40,6 +40,9 @@ public class BinaryManager : BaseManager<BinaryManager>
|
|||
LoadTable<TB_ProcessContainer, TB_Process>();
|
||||
LoadTable<TB_SubProcessContainer, TB_SubProcess>();
|
||||
LoadTable<TB_SubProcessStepContainer, TB_SubProcessStep>();
|
||||
LoadTable<TB_SystemContainer, TB_System>();
|
||||
LoadTable<TB_DeviceTypeContainer, TB_DeviceType>();
|
||||
LoadTable<TB_ToolAndMaterialContainer, TB_ToolAndMaterial>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -1,9 +1,15 @@
|
|||
public class Const
|
||||
{
|
||||
#region ·¾¶ÅäÖÃ
|
||||
/// <summary>
|
||||
/// 系统标题图路径
|
||||
/// </summary>
|
||||
public const string TitleSpritePath = "Sprites/Title/";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 系统加载背景图路径
|
||||
/// </summary>
|
||||
public const string LoadBGPath = "Sprites/UI_LoadingBG/";
|
||||
#endregion
|
||||
|
||||
public const string CheckKeyDown = "CheckKeyDown";
|
||||
|
|
|
@ -6,17 +6,17 @@ using UnityEngine.EventSystems;
|
|||
using UnityEngine.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Item 基类 方便使用组件
|
||||
/// Item 基类 方便使用组件
|
||||
/// </summary>
|
||||
public class BaseItem : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 存储面板上所有控件
|
||||
/// 存储面板上所有控件
|
||||
/// </summary>
|
||||
private readonly Dictionary<string, List<UIBehaviour>> controlDic = new Dictionary<string, List<UIBehaviour>>();
|
||||
|
||||
/// <summary>
|
||||
/// 初始化 查找控件
|
||||
/// 初始化 查找控件
|
||||
/// </summary>
|
||||
protected virtual void Awake()
|
||||
{
|
||||
|
@ -31,7 +31,7 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 得到对应名称的控件
|
||||
/// 得到对应名称的控件
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="controlName"></param>
|
||||
|
@ -50,7 +50,7 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找所有子对象
|
||||
/// 查找所有子对象
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
private void FindChildrenControl<T>() where T : UIBehaviour
|
||||
|
@ -101,7 +101,7 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示自己
|
||||
/// 显示自己
|
||||
/// </summary>
|
||||
public virtual void ShowMe()
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 隐藏自己
|
||||
/// 隐藏自己
|
||||
/// </summary>
|
||||
public virtual void HideMe()
|
||||
{
|
||||
|
@ -117,7 +117,7 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按钮点击事件
|
||||
/// 按钮点击事件
|
||||
/// </summary>
|
||||
/// <param name="btnName"></param>
|
||||
protected virtual void OnClick(string btnName)
|
||||
|
@ -126,30 +126,30 @@ public class BaseItem : MonoBehaviour
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toogle点击
|
||||
/// Toogle点击
|
||||
/// </summary>
|
||||
/// <param name="toogleName">toogle名称</param>
|
||||
/// <param name="isOn">状态值</param>
|
||||
/// <param name="toogleName">toogle名称</param>
|
||||
/// <param name="isOn">状态值</param>
|
||||
protected virtual void OnChangeToggle(string toogleName, bool isOn)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Slider拖动
|
||||
/// Slider拖动
|
||||
/// </summary>
|
||||
/// <param name="SliderName">Slider组件名称</param>
|
||||
/// <param name="value">数值</param>
|
||||
/// <param name="SliderName">Slider组件名称</param>
|
||||
/// <param name="value">数值</param>
|
||||
protected virtual void OnChangeSlider(string SliderName, float value)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 输入框输入
|
||||
/// 输入框输入
|
||||
/// </summary>
|
||||
/// <param name="inputFileName">输入框名称</param>
|
||||
/// <param name="value">输入框内的值</param>
|
||||
/// <param name="inputFileName">输入框名称</param>
|
||||
/// <param name="value">输入框内的值</param>
|
||||
protected virtual void OnChangeInputFile(string inputFileName, string value)
|
||||
{
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ using UnityEngine.UI;
|
|||
public class BasePanel : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// ??????????????
|
||||
/// ??????????п??
|
||||
/// </summary>
|
||||
private readonly Dictionary<string,List<UIBehaviour>> controlDic = new Dictionary<string, List<UIBehaviour>>();
|
||||
|
||||
|
@ -27,6 +27,7 @@ public class BasePanel : MonoBehaviour
|
|||
FindChildrenControl<ScrollRect>();
|
||||
FindChildrenControl<InputField>();
|
||||
FindChildrenControl<TextMeshPro>();
|
||||
FindChildrenControl<TextMeshProUGUI>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -54,7 +55,7 @@ public class BasePanel : MonoBehaviour
|
|||
/// <typeparam name="T"></typeparam>
|
||||
private void FindChildrenControl<T>() where T : UIBehaviour
|
||||
{
|
||||
T[] controls = GetComponentsInChildren<T>(true);
|
||||
T[] controls = GetComponentsInChildren<T>(true);
|
||||
|
||||
for (int i = 0; i < controls.Length; i++)
|
||||
{
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 018ffb75fb674c64f8471e20123a46f1
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5f0cf2f09556be549b986dc1efef4f6f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -4,6 +4,7 @@
|
|||
"com.unity.ide.rider": "3.0.28",
|
||||
"com.unity.ide.visualstudio": "2.0.22",
|
||||
"com.unity.ide.vscode": "1.2.5",
|
||||
"com.unity.render-pipelines.universal": "12.1.14",
|
||||
"com.unity.test-framework": "1.1.33",
|
||||
"com.unity.textmeshpro": "3.0.6",
|
||||
"com.unity.timeline": "1.6.5",
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"com.unity.burst": {
|
||||
"version": "1.8.11",
|
||||
"depth": 1,
|
||||
"source": "registry",
|
||||
"dependencies": {
|
||||
"com.unity.mathematics": "1.2.1"
|
||||
},
|
||||
"url": "https://packages.unity.cn"
|
||||
},
|
||||
"com.unity.collab-proxy": {
|
||||
"version": "2.3.1",
|
||||
"depth": 0,
|
||||
|
@ -39,6 +48,50 @@
|
|||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
},
|
||||
"com.unity.mathematics": {
|
||||
"version": "1.2.6",
|
||||
"depth": 1,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
},
|
||||
"com.unity.render-pipelines.core": {
|
||||
"version": "12.1.14",
|
||||
"depth": 1,
|
||||
"source": "builtin",
|
||||
"dependencies": {
|
||||
"com.unity.ugui": "1.0.0",
|
||||
"com.unity.modules.physics": "1.0.0",
|
||||
"com.unity.modules.jsonserialize": "1.0.0"
|
||||
}
|
||||
},
|
||||
"com.unity.render-pipelines.universal": {
|
||||
"version": "12.1.14",
|
||||
"depth": 0,
|
||||
"source": "builtin",
|
||||
"dependencies": {
|
||||
"com.unity.mathematics": "1.2.1",
|
||||
"com.unity.burst": "1.8.9",
|
||||
"com.unity.render-pipelines.core": "12.1.14",
|
||||
"com.unity.shadergraph": "12.1.14"
|
||||
}
|
||||
},
|
||||
"com.unity.searcher": {
|
||||
"version": "4.9.1",
|
||||
"depth": 2,
|
||||
"source": "registry",
|
||||
"dependencies": {},
|
||||
"url": "https://packages.unity.cn"
|
||||
},
|
||||
"com.unity.shadergraph": {
|
||||
"version": "12.1.14",
|
||||
"depth": 1,
|
||||
"source": "builtin",
|
||||
"dependencies": {
|
||||
"com.unity.render-pipelines.core": "12.1.14",
|
||||
"com.unity.searcher": "4.9.1"
|
||||
}
|
||||
},
|
||||
"com.unity.test-framework": {
|
||||
"version": "1.1.33",
|
||||
"depth": 0,
|
||||
|
|
Loading…
Reference in New Issue