Compare commits
2 Commits
2ba941bc0b
...
5caf71a5cc
Author | SHA1 | Date |
---|---|---|
|
5caf71a5cc | |
|
bd760ede92 |
|
@ -4,6 +4,8 @@ using UnityEngine.Networking;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异步封装unityWebRequest请求
|
/// 异步封装unityWebRequest请求
|
||||||
|
@ -22,6 +24,41 @@ public static class AsyncWebReq
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void SetValue(string jsonStr, out JObject _jbsx, out JObject _jsxx, out List<JObject> _jlzzxx)
|
||||||
|
{
|
||||||
|
var json = JsonConvert.DeserializeObject<Dictionary<string, object>>(jsonStr);
|
||||||
|
var data = json["data"] as JObject;
|
||||||
|
|
||||||
|
var jbsxArr = data["jbsx"] as JArray;
|
||||||
|
var jbsx = jbsxArr[0] as JObject;
|
||||||
|
_jbsx = jbsx;
|
||||||
|
//foreach (var kv in jbsx)
|
||||||
|
//{
|
||||||
|
// Debug.Log(kv.Key + ":" + kv.Value);
|
||||||
|
//}
|
||||||
|
|
||||||
|
var jbxxArr = data["jbxx"] as JArray;
|
||||||
|
var jbxx = jbxxArr[0] as JObject;
|
||||||
|
_jsxx = jbxx;
|
||||||
|
//foreach (var kv in jbxx)
|
||||||
|
//{
|
||||||
|
// Debug.Log(kv.Key + ":" + kv.Value);
|
||||||
|
//}
|
||||||
|
|
||||||
|
_jlzzxx = new List<JObject>();
|
||||||
|
var jlzzxxArr = data["jlzzxx"] as JArray;
|
||||||
|
for (int i = 0; i < jlzzxxArr.Count; i++)
|
||||||
|
{
|
||||||
|
var jlzzxx = jlzzxxArr[i] as JObject;
|
||||||
|
_jlzzxx.Add(jlzzxx);
|
||||||
|
|
||||||
|
}
|
||||||
|
//foreach (var kv in jlzzxx)
|
||||||
|
//{
|
||||||
|
// Debug.Log(kv.Key + ":" + kv.Value);
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
public static async UniTask<T> Post<T>(string endpoint, object payload)
|
public static async UniTask<T> Post<T>(string endpoint, object payload)
|
||||||
{
|
{
|
||||||
var postRequest = CreateRequest(endpoint, RequestType.POST, payload);
|
var postRequest = CreateRequest(endpoint, RequestType.POST, payload);
|
||||||
|
@ -57,7 +94,17 @@ public static class AsyncWebReq
|
||||||
{
|
{
|
||||||
request.SetRequestHeader(key, value);
|
request.SetRequestHeader(key, value);
|
||||||
}
|
}
|
||||||
|
private static string ObjectToStringTwo(Object obj)
|
||||||
|
{
|
||||||
|
string str = JsonConvert.SerializeObject(obj);
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static T StringToObjectTwo<T>(string str)
|
||||||
|
{
|
||||||
|
T obj = JsonConvert.DeserializeObject<T>(str);
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 请求类型
|
/// 请求类型
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -0,0 +1,173 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &3060033319065562610
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3060033319065562605}
|
||||||
|
- component: {fileID: 3060033319065562607}
|
||||||
|
- component: {fileID: 3060033319065562604}
|
||||||
|
- component: {fileID: -6759000987747965095}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: MobileTerminalTipsItem
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3060033319065562605
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319065562610}
|
||||||
|
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:
|
||||||
|
- {fileID: 3060033319736008774}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 167.20676, y: -4}
|
||||||
|
m_SizeDelta: {x: 324.0277, y: 53.9936}
|
||||||
|
m_Pivot: {x: 0.5, y: 1}
|
||||||
|
--- !u!222 &3060033319065562607
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319065562610}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &3060033319065562604
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319065562610}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 21300000, guid: 5d1f94333dbaedc45847cf8a267292e7, type: 3}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!114 &-6759000987747965095
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319065562610}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 08b7b5ef3ad8ff043bf13bcf4c010cd5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
infoText: {fileID: 3060033319736008769}
|
||||||
|
--- !u!1 &3060033319736008775
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3060033319736008774}
|
||||||
|
- component: {fileID: 3060033319736008768}
|
||||||
|
- component: {fileID: 3060033319736008769}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text (Legacy)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3060033319736008774
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319736008775}
|
||||||
|
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: 3060033319065562605}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &3060033319736008768
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319736008775}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &3060033319736008769
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3060033319736008775}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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_FontData:
|
||||||
|
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_FontSize: 15
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 1
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 3
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: "\u8868\u8BA1\u6807\u8BC6 8200000048090259"
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 104235b8155fd814ba5dab0e82752334
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,316 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!29 &1
|
||||||
|
OcclusionCullingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_OcclusionBakeSettings:
|
||||||
|
smallestOccluder: 5
|
||||||
|
smallestHole: 0.25
|
||||||
|
backfaceThreshold: 100
|
||||||
|
m_SceneGUID: 00000000000000000000000000000000
|
||||||
|
m_OcclusionCullingData: {fileID: 0}
|
||||||
|
--- !u!104 &2
|
||||||
|
RenderSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 9
|
||||||
|
m_Fog: 0
|
||||||
|
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||||
|
m_FogMode: 3
|
||||||
|
m_FogDensity: 0.01
|
||||||
|
m_LinearFogStart: 0
|
||||||
|
m_LinearFogEnd: 300
|
||||||
|
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||||
|
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||||
|
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||||
|
m_AmbientIntensity: 1
|
||||||
|
m_AmbientMode: 0
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_HaloStrength: 0.5
|
||||||
|
m_FlareStrength: 1
|
||||||
|
m_FlareFadeSpeed: 3
|
||||||
|
m_HaloTexture: {fileID: 0}
|
||||||
|
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_DefaultReflectionMode: 0
|
||||||
|
m_DefaultReflectionResolution: 128
|
||||||
|
m_ReflectionBounces: 1
|
||||||
|
m_ReflectionIntensity: 1
|
||||||
|
m_CustomReflection: {fileID: 0}
|
||||||
|
m_Sun: {fileID: 0}
|
||||||
|
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 12
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 12
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_AtlasSize: 1024
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAmbientOcclusion: 0
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_TextureCompression: 1
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_ReflectionCompression: 2
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_BakeBackend: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVREnvironmentSampleCount: 256
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_PVRFilteringMode: 1
|
||||||
|
m_PVRDenoiserTypeDirect: 1
|
||||||
|
m_PVRDenoiserTypeIndirect: 1
|
||||||
|
m_PVRDenoiserTypeAO: 1
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVREnvironmentMIS: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_LightingSettings: {fileID: 0}
|
||||||
|
--- !u!196 &4
|
||||||
|
NavMeshSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_BuildSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
agentTypeID: 0
|
||||||
|
agentRadius: 0.5
|
||||||
|
agentHeight: 2
|
||||||
|
agentSlope: 45
|
||||||
|
agentClimb: 0.4
|
||||||
|
ledgeDropHeight: 0
|
||||||
|
maxJumpAcrossDistance: 0
|
||||||
|
minRegionArea: 2
|
||||||
|
manualCellSize: 0
|
||||||
|
cellSize: 0.16666667
|
||||||
|
manualTileSize: 0
|
||||||
|
tileSize: 256
|
||||||
|
accuratePlacement: 0
|
||||||
|
maxJobWorkers: 0
|
||||||
|
preserveTilesOutsideBounds: 0
|
||||||
|
debug:
|
||||||
|
m_Flags: 0
|
||||||
|
m_NavMeshData: {fileID: 0}
|
||||||
|
--- !u!1 &501146018
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 501146021}
|
||||||
|
- component: {fileID: 501146020}
|
||||||
|
- component: {fileID: 501146019}
|
||||||
|
- component: {fileID: 501146022}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Main Camera
|
||||||
|
m_TagString: MainCamera
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!81 &501146019
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 501146018}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &501146020
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 501146018}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 1
|
||||||
|
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FOVAxisMode: 0
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_FocalLength: 50
|
||||||
|
m_NormalizedViewPortRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
near clip plane: 0.3
|
||||||
|
far clip plane: 1000
|
||||||
|
field of view: 60
|
||||||
|
orthographic: 0
|
||||||
|
orthographic size: 5
|
||||||
|
m_Depth: -1
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingPath: -1
|
||||||
|
m_TargetTexture: {fileID: 0}
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_TargetEye: 3
|
||||||
|
m_HDR: 1
|
||||||
|
m_AllowMSAA: 1
|
||||||
|
m_AllowDynamicResolution: 0
|
||||||
|
m_ForceIntoRT: 0
|
||||||
|
m_OcclusionCulling: 1
|
||||||
|
m_StereoConvergence: 10
|
||||||
|
m_StereoSeparation: 0.022
|
||||||
|
--- !u!4 &501146021
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 501146018}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &501146022
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 501146018}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d38da66309ccf6640acd6bd3ea8ee27a, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &874215953
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 874215955}
|
||||||
|
- component: {fileID: 874215954}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Directional Light
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!108 &874215954
|
||||||
|
Light:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 874215953}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 10
|
||||||
|
m_Type: 1
|
||||||
|
m_Shape: 0
|
||||||
|
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||||
|
m_Intensity: 1
|
||||||
|
m_Range: 10
|
||||||
|
m_SpotAngle: 30
|
||||||
|
m_InnerSpotAngle: 21.80208
|
||||||
|
m_CookieSize: 10
|
||||||
|
m_Shadows:
|
||||||
|
m_Type: 2
|
||||||
|
m_Resolution: -1
|
||||||
|
m_CustomResolution: -1
|
||||||
|
m_Strength: 1
|
||||||
|
m_Bias: 0.05
|
||||||
|
m_NormalBias: 0.4
|
||||||
|
m_NearPlane: 0.2
|
||||||
|
m_CullingMatrixOverride:
|
||||||
|
e00: 1
|
||||||
|
e01: 0
|
||||||
|
e02: 0
|
||||||
|
e03: 0
|
||||||
|
e10: 0
|
||||||
|
e11: 1
|
||||||
|
e12: 0
|
||||||
|
e13: 0
|
||||||
|
e20: 0
|
||||||
|
e21: 0
|
||||||
|
e22: 1
|
||||||
|
e23: 0
|
||||||
|
e30: 0
|
||||||
|
e31: 0
|
||||||
|
e32: 0
|
||||||
|
e33: 1
|
||||||
|
m_UseCullingMatrixOverride: 0
|
||||||
|
m_Cookie: {fileID: 0}
|
||||||
|
m_DrawHalo: 0
|
||||||
|
m_Flare: {fileID: 0}
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_Lightmapping: 4
|
||||||
|
m_LightShadowCasterMode: 0
|
||||||
|
m_AreaSize: {x: 1, y: 1}
|
||||||
|
m_BounceIntensity: 1
|
||||||
|
m_ColorTemperature: 6570
|
||||||
|
m_UseColorTemperature: 0
|
||||||
|
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_UseBoundingSphereOverride: 0
|
||||||
|
m_UseViewFrustumForShadowCasterCull: 1
|
||||||
|
m_ShadowRadius: 0
|
||||||
|
m_ShadowAngle: 0
|
||||||
|
--- !u!4 &874215955
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 874215953}
|
||||||
|
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||||
|
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4aa5ccc2576fdb141a7bfd0e9d366663
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,40 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author YangHua
|
||||||
|
//@create 20230913
|
||||||
|
//@company Adam
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace Adam
|
||||||
|
{
|
||||||
|
public class AssignmentController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public GameObject RWPanel;
|
||||||
|
public Button loadBtn;
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
loadBtn.onClick.AddListener(OnLoad);
|
||||||
|
SwitchPanel(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void SwitchPanel(bool isActive)
|
||||||
|
{
|
||||||
|
RWPanel.SetActive(isActive);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnLoad()
|
||||||
|
{
|
||||||
|
SceneLoad.Instance.SceneChange("工具间场景");
|
||||||
|
loadBtn.gameObject.SetActive(false);
|
||||||
|
SwitchPanel(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 710dd9372b772b548b8366c3bbce0a3d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,36 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author YangHua
|
||||||
|
//@create 20230913
|
||||||
|
//@company QianHuo
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace QianHuo
|
||||||
|
{
|
||||||
|
public class BottomController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Toggle[] toggles;
|
||||||
|
public GameObject[] panels;
|
||||||
|
// Use this for initialization
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < panels.Length; i++)
|
||||||
|
{
|
||||||
|
panels[i].SetActive(false);
|
||||||
|
}
|
||||||
|
for (int i = 0; i < toggles.Length; i++)
|
||||||
|
{
|
||||||
|
int index = i;
|
||||||
|
toggles[index].onValueChanged.AddListener((isOn) =>
|
||||||
|
{
|
||||||
|
panels[index].SetActive(isOn);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0815f0a55cdb45d40a51e0f13cd04216
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -1,5 +1,5 @@
|
||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: ea47250b7c44da14c9f69015bbf71a64
|
guid: e3f34685c33988542b3ba632ddfd75a1
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
|
@ -14,10 +14,14 @@ using UnityEngine.UI;
|
||||||
|
|
||||||
public class BottomTips : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
public class BottomTips : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
||||||
{
|
{
|
||||||
|
[HideInInspector]
|
||||||
public Text tips;
|
public Text tips;
|
||||||
|
[HideInInspector]
|
||||||
public GameObject tipsContent;
|
public GameObject tipsContent;
|
||||||
|
public Toggle selfToggle;
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
selfToggle = GetComponent<Toggle>();
|
||||||
tipsContent = transform.Find("Tips").gameObject;
|
tipsContent = transform.Find("Tips").gameObject;
|
||||||
tips = tipsContent.transform.GetChild(0).GetComponent<Text>();
|
tips = tipsContent.transform.GetChild(0).GetComponent<Text>();
|
||||||
tipsContent.SetActive(false);
|
tipsContent.SetActive(false);
|
|
@ -0,0 +1,23 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author YangHua
|
||||||
|
//@create 20230913
|
||||||
|
//@company QianHuo
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace Components
|
||||||
|
{
|
||||||
|
public class MobileTerminalTipsItem : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Text infoText;
|
||||||
|
public void SetValue(string info)
|
||||||
|
{
|
||||||
|
infoText.text = info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 08b7b5ef3ad8ff043bf13bcf4c010cd5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -49,7 +49,7 @@ public class ToolModelClick : MonoBehaviour
|
||||||
public Attribute attribute = Attribute.defaultModel;
|
public Attribute attribute = Attribute.defaultModel;
|
||||||
public RightAndWrong rightAndWrong = RightAndWrong.defaultModel;
|
public RightAndWrong rightAndWrong = RightAndWrong.defaultModel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void OnMouseEnter()
|
private void OnMouseEnter()
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,10 @@ public class ToolModelClick : MonoBehaviour
|
||||||
private void OnMouseDown()
|
private void OnMouseDown()
|
||||||
{
|
{
|
||||||
if (EventSystem.current.IsPointerOverGameObject())
|
if (EventSystem.current.IsPointerOverGameObject())
|
||||||
|
{
|
||||||
|
Debug.Log(EventSystem.current.gameObject.name);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
ToolsItemManager.Instance.CreatToolItem(gameObject);
|
ToolsItemManager.Instance.CreatToolItem(gameObject);
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f7373dd85a35c864caf6017a4a266e8f
|
guid: a6efc5f978d37694ba72aa36c916cdf7
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
|
@ -8,7 +8,7 @@
|
||||||
//@description:
|
//@description:
|
||||||
//============================================================
|
//============================================================
|
||||||
using System;
|
using System;
|
||||||
namespace Adam
|
namespace Login
|
||||||
{
|
{
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class LoginData
|
public class LoginData
|
||||||
|
@ -22,4 +22,4 @@ namespace Adam
|
||||||
{
|
{
|
||||||
public string msg;
|
public string msg;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author YangHua
|
||||||
|
//@create 20230913
|
||||||
|
//@company QianHuo
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace Data
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class TableViewData
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string state;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string message;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public List<string> data;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 09ae037e450bb7f4685116b24e29344a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,198 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author #AUTHOR#
|
||||||
|
//@create #CREATEDATE#
|
||||||
|
//@company #COMPANY#
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace MobileTerminal
|
||||||
|
{
|
||||||
|
|
||||||
|
[Serializable]
|
||||||
|
public class UserViewData
|
||||||
|
{
|
||||||
|
public string state;
|
||||||
|
public string message;
|
||||||
|
public Data data;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
public class Data
|
||||||
|
{
|
||||||
|
public JBSX[] jbsx;
|
||||||
|
public JBXX[] jbxx;
|
||||||
|
public JLZZXX[] jlzzxx;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
public class JBSX
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 周保林 用电户:3209600004110
|
||||||
|
/// </summary>
|
||||||
|
public string 名称;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 用户编号;
|
||||||
|
/// <summary>
|
||||||
|
/// 仪征市供电公司
|
||||||
|
/// </summary>
|
||||||
|
public string 供电单位;
|
||||||
|
/// <summary>
|
||||||
|
/// 考核
|
||||||
|
/// </summary>
|
||||||
|
public string 用户分类;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否专线;
|
||||||
|
/// <summary>
|
||||||
|
/// 正常用电客户
|
||||||
|
/// </summary>
|
||||||
|
public string 用户状态;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 合同容量;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 运行容量;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 首次建档日期;
|
||||||
|
/// <summary>
|
||||||
|
/// 江苏省扬州市仪征市真州镇(仪征市区)镇解放东路12号
|
||||||
|
/// </summary>
|
||||||
|
public string 用电地址;
|
||||||
|
/// <summary>
|
||||||
|
/// 无转供
|
||||||
|
/// </summary>
|
||||||
|
public string 转供户信息;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
public class JBXX
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 周保林
|
||||||
|
/// </summary>
|
||||||
|
public string 用户名称;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 用户编号;
|
||||||
|
/// <summary>
|
||||||
|
/// 正常用电客户
|
||||||
|
/// </summary>
|
||||||
|
public string 用户状态;
|
||||||
|
/// <summary>
|
||||||
|
/// 考核
|
||||||
|
/// </summary>
|
||||||
|
public string 用户分类;
|
||||||
|
/// <summary>
|
||||||
|
/// 仪征市供电公司
|
||||||
|
/// </summary>
|
||||||
|
public string 供电单位;
|
||||||
|
/// <summary>
|
||||||
|
/// 太阳能发电
|
||||||
|
/// </summary>
|
||||||
|
public string 所属行业;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 合同容量;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 运行容量;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 电压等级;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 重要等级;
|
||||||
|
/// <summary>
|
||||||
|
/// 考核
|
||||||
|
/// </summary>
|
||||||
|
public string 用电类别;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否重点用户;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否专线;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 首次建档;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否双电源;
|
||||||
|
/// <summary>
|
||||||
|
/// PMS_石桥146线
|
||||||
|
/// </summary>
|
||||||
|
public string 线路名称;
|
||||||
|
/// <summary>
|
||||||
|
/// 江苏省扬州市仪征市真州镇(仪征市区)镇解放东路12号
|
||||||
|
/// </summary>
|
||||||
|
public string 用电地址;
|
||||||
|
}
|
||||||
|
[Serializable]
|
||||||
|
public class JLZZXX
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 序号;
|
||||||
|
/// <summary>
|
||||||
|
/// 上网计量点1
|
||||||
|
/// </summary>
|
||||||
|
public string 计量点名称;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 计量点ID;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 电表ID;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 电表资产编号;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否参考表;
|
||||||
|
/// <summary>
|
||||||
|
/// 否
|
||||||
|
/// </summary>
|
||||||
|
public string 是否专线;
|
||||||
|
/// <summary>
|
||||||
|
/// 上网关口
|
||||||
|
/// </summary>
|
||||||
|
public string 主用途类型;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 计量点级数;
|
||||||
|
/// <summary>
|
||||||
|
/// 在用
|
||||||
|
/// </summary>
|
||||||
|
public string 状态;
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public string 倍率;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author #AUTHOR#
|
||||||
|
//@create #CREATEDATE#
|
||||||
|
//@company #COMPANY#
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
public class Global : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Use this for initialization
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 894dab4727cc9d9479b9c88222457a8e
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,30 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
//============================================================
|
||||||
|
//支持中文,文件使用UTF-8编码
|
||||||
|
//@author YangHua
|
||||||
|
//@create 20230913
|
||||||
|
//@company QianHuo
|
||||||
|
//
|
||||||
|
//@description:
|
||||||
|
//============================================================
|
||||||
|
namespace QianHuo
|
||||||
|
{
|
||||||
|
public class GoToSceneController : MonoBehaviour
|
||||||
|
{
|
||||||
|
public Button goToSceneBtn;
|
||||||
|
public InputField userID;
|
||||||
|
// Use this for initialization
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
goToSceneBtn.onClick.AddListener(OnGo);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnGo()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 829adfdbce7279c4e91f15e82646453b
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -1,4 +1,4 @@
|
||||||
using Adam;
|
using Login;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
@ -22,6 +22,10 @@ public class LoginController : MonoBehaviour
|
||||||
public Text errorInfo;
|
public Text errorInfo;
|
||||||
public Button loginBtn;
|
public Button loginBtn;
|
||||||
public GameObject modelChangePlane;
|
public GameObject modelChangePlane;
|
||||||
|
public GameObject loginPlane;
|
||||||
|
|
||||||
|
public Button onTrain;
|
||||||
|
|
||||||
// Use this for initialization
|
// Use this for initialization
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
@ -31,28 +35,47 @@ public class LoginController : MonoBehaviour
|
||||||
{
|
{
|
||||||
OnLogin();
|
OnLogin();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onTrain.onClick.AddListener(() =>
|
||||||
|
{
|
||||||
|
OnTrain();
|
||||||
|
});
|
||||||
|
SwitchPanel(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public async void OnLogin()
|
public async void OnLogin()
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(user.text) || string.IsNullOrEmpty(password.text))
|
//Debug.Log(loginUrl + "/Handler/Login.ashx?login_name=" + user.text + "&login_card=" + password.text);
|
||||||
{
|
//if (string.IsNullOrEmpty(user.text) || string.IsNullOrEmpty(password.text))
|
||||||
StartCoroutine(WaitCloseErrorPlane("姓名和身份证不能为空"));
|
//{
|
||||||
return;
|
// StartCoroutine(WaitCloseErrorPlane("姓名和身份证不能为空"));
|
||||||
}
|
// return;
|
||||||
|
//}
|
||||||
|
|
||||||
LoginData msg = await AsyncWebReq.Post<LoginData>(loginUrl + "?login_name=" + user.text + "&login_card=" + password.text, null);
|
//LoginData msg = await AsyncWebReq.Post<LoginData>(loginUrl + "/Handler/Login.ashx?login_name=" + user.text + "&login_card=" + password.text, null);
|
||||||
Debug.Log(msg.state);
|
//Debug.Log(msg.state);
|
||||||
if (msg.state == "Fail")
|
//if (msg.state == "Fail")
|
||||||
{
|
//{
|
||||||
StartCoroutine(WaitCloseErrorPlane(msg.data[0].msg));
|
// StartCoroutine(WaitCloseErrorPlane(msg.data[0].msg));
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
modelChangePlane.SetActive(true);
|
SwitchPanel(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
IEnumerator WaitCloseErrorPlane(string msg)
|
public void OnTrain()
|
||||||
|
{
|
||||||
|
SceneLoad.Instance.SceneChange("02_MapScene");
|
||||||
|
SwitchPanel(-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SwitchPanel(int index)
|
||||||
|
{
|
||||||
|
loginPlane.SetActive(index == 0);
|
||||||
|
modelChangePlane.SetActive(index == 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerator WaitCloseErrorPlane(string msg)
|
||||||
{
|
{
|
||||||
errorInfo.text = msg;
|
errorInfo.text = msg;
|
||||||
yield return new WaitForSeconds(2f);
|
yield return new WaitForSeconds(2f);
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
using Components;
|
||||||
|
using Data;
|
||||||
|
using MobileTerminal;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
@ -13,26 +18,77 @@ using UnityEngine.UI;
|
||||||
|
|
||||||
public class MobileTerminalController : MonoBehaviour
|
public class MobileTerminalController : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
public string userViewUrl;
|
||||||
|
public string tapViewUrl;
|
||||||
public InputField number;
|
public InputField number;
|
||||||
public Button outsideBtn;
|
public Button outsideBtn;
|
||||||
public Button electricitBtn;
|
public Button electricitBtn;
|
||||||
public Button backBtn;
|
public Button backBtn;
|
||||||
|
|
||||||
public GameObject outsideView;
|
public GameObject tapView;
|
||||||
public GameObject electrcitView;
|
public GameObject userView;
|
||||||
|
|
||||||
public Text outsideInfo;
|
public Transform userContent;
|
||||||
public Text electrcitInfo;
|
public Transform tapContent;
|
||||||
|
public MobileTerminalTipsItem itemPrfab;
|
||||||
|
[HideInInspector]
|
||||||
|
public UserViewData mData = new UserViewData();
|
||||||
|
//[HideInInspector]
|
||||||
|
public TableViewData tData = new TableViewData();
|
||||||
|
public JObject jbsx;
|
||||||
|
public JObject jbxx;
|
||||||
|
public List<JObject> jlzzxx = new List<JObject>();
|
||||||
|
|
||||||
// Use this for initialization
|
// Use this for initialization
|
||||||
private void Start()
|
private async void Start()
|
||||||
{
|
{
|
||||||
|
mData = await AsyncWebReq.Get<UserViewData>(userViewUrl);
|
||||||
|
tData = await AsyncWebReq.Get<TableViewData>(tapViewUrl);
|
||||||
|
|
||||||
|
|
||||||
|
string jsonData = JsonConvert.SerializeObject(mData);
|
||||||
|
AsyncWebReq.SetValue(jsonData, out jbsx, out jbxx, out jlzzxx);
|
||||||
|
|
||||||
|
foreach (var item in jbsx)
|
||||||
|
{
|
||||||
|
MobileTerminalTipsItem itemTip = Instantiate(itemPrfab, userContent);
|
||||||
|
string info = item.Key + ": " + item.Value;
|
||||||
|
itemTip.SetValue(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (var item in jbxx)
|
||||||
|
{
|
||||||
|
MobileTerminalTipsItem itemTip = Instantiate(itemPrfab, userContent);
|
||||||
|
string info = item.Key + ": " + item.Value;
|
||||||
|
itemTip.SetValue(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < jlzzxx.Count; i++)
|
||||||
|
{
|
||||||
|
foreach (var item in jlzzxx[i])
|
||||||
|
{
|
||||||
|
MobileTerminalTipsItem itemTip = Instantiate(itemPrfab, userContent);
|
||||||
|
string info = item.Key + ": " + item.Value;
|
||||||
|
itemTip.SetValue(info);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i = 0; i < tData.data.Count; i++)
|
||||||
|
{
|
||||||
|
MobileTerminalTipsItem itemTip = Instantiate(itemPrfab, tapContent);
|
||||||
|
itemTip.SetValue(tData.data[i]);
|
||||||
|
}
|
||||||
|
|
||||||
outsideBtn.onClick.AddListener(OnOutsideView);
|
outsideBtn.onClick.AddListener(OnOutsideView);
|
||||||
electricitBtn.onClick.AddListener(OnElectricitView);
|
electricitBtn.onClick.AddListener(OnElectricitView);
|
||||||
backBtn.onClick.AddListener(OnBack);
|
backBtn.onClick.AddListener(OnBack);
|
||||||
SwitchView(-1);
|
SwitchView(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void OnElectricitView()
|
public void OnElectricitView()
|
||||||
{
|
{
|
||||||
SwitchView(0);
|
SwitchView(0);
|
||||||
|
@ -46,8 +102,8 @@ public class MobileTerminalController : MonoBehaviour
|
||||||
|
|
||||||
public void SwitchView(int index)
|
public void SwitchView(int index)
|
||||||
{
|
{
|
||||||
electrcitView.SetActive(index == 0);
|
userView.SetActive(index == 0);
|
||||||
outsideView.SetActive(index == 1);
|
tapView.SetActive(index == 1);
|
||||||
if (index == 0 || index == 1)
|
if (index == 0 || index == 1)
|
||||||
{
|
{
|
||||||
backBtn.gameObject.SetActive(true);
|
backBtn.gameObject.SetActive(true);
|
||||||
|
|
|
@ -1,81 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
//============================================================
|
|
||||||
//支持中文,文件使用UTF-8编码
|
|
||||||
//@author #AUTHOR#
|
|
||||||
//@create #CREATEDATE#
|
|
||||||
//@company #COMPANY#
|
|
||||||
//
|
|
||||||
//@description:
|
|
||||||
//============================================================
|
|
||||||
[Serializable]
|
|
||||||
public class MobileTerminalData
|
|
||||||
{
|
|
||||||
public string state;
|
|
||||||
public string message;
|
|
||||||
public Data data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Data
|
|
||||||
{
|
|
||||||
public JBSX jbsx;
|
|
||||||
public JBXX jbxx;
|
|
||||||
public JZXX jzxx;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class JBSX
|
|
||||||
{
|
|
||||||
public string column1;
|
|
||||||
public string column2;
|
|
||||||
public string column3;
|
|
||||||
public string column4;
|
|
||||||
public string column5;
|
|
||||||
public string column6;
|
|
||||||
public string column7;
|
|
||||||
public string column8;
|
|
||||||
public string column9;
|
|
||||||
public string column10;
|
|
||||||
public string column11;
|
|
||||||
public string column12;
|
|
||||||
public string column13;
|
|
||||||
}
|
|
||||||
|
|
||||||
public class JBXX
|
|
||||||
{
|
|
||||||
public string column1;
|
|
||||||
public string column2;
|
|
||||||
public string column3;
|
|
||||||
public string column4;
|
|
||||||
public string column5;
|
|
||||||
public string column6;
|
|
||||||
public string column7;
|
|
||||||
public string column8;
|
|
||||||
public string column9;
|
|
||||||
public string column10;
|
|
||||||
public string column11;
|
|
||||||
public string column12;
|
|
||||||
public string column13;
|
|
||||||
public string column14;
|
|
||||||
public string column15;
|
|
||||||
public string column16;
|
|
||||||
public string column17;
|
|
||||||
}
|
|
||||||
public class JZXX
|
|
||||||
{
|
|
||||||
public string column1;
|
|
||||||
public string column2;
|
|
||||||
public string column3;
|
|
||||||
public string column4;
|
|
||||||
public string column5;
|
|
||||||
public string column6;
|
|
||||||
public string column7;
|
|
||||||
public string column8;
|
|
||||||
public string column9;
|
|
||||||
public string column10;
|
|
||||||
public string column11;
|
|
||||||
public string column12;
|
|
||||||
public string column13;
|
|
||||||
public string column14;
|
|
||||||
}
|
|
|
@ -13,18 +13,19 @@ using UnityEngine.UI;
|
||||||
|
|
||||||
public class ToolsItemManager : MonoSingleton<ToolsItemManager>
|
public class ToolsItemManager : MonoSingleton<ToolsItemManager>
|
||||||
{
|
{
|
||||||
|
public GameObject toolPanel;
|
||||||
public List<ToolItem> toolItems = new List<ToolItem>();
|
public List<ToolItem> toolItems = new List<ToolItem>();
|
||||||
public ToolItem toolItemPrefab;
|
public ToolItem toolItemPrefab;
|
||||||
public Transform toolsContent;
|
public Transform toolsContent;
|
||||||
public Button closeBtn;
|
public Button closeBtn;
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
closeBtn.onClick.AddListener(OnClose);
|
closeBtn.onClick.AddListener(() => { Swictch(false); });
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnClose()
|
private void Swictch(bool isActive)
|
||||||
{
|
{
|
||||||
gameObject.SetActive(false);
|
toolPanel.SetActive(isActive);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SwitchToolsState()
|
public void SwitchToolsState()
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
using Adam;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
@ -10,11 +11,17 @@ using UnityEngine;
|
||||||
//@description:
|
//@description:
|
||||||
//============================================================
|
//============================================================
|
||||||
|
|
||||||
public class UIManager : MonoBehaviour
|
public class UIManager : MonoSingleton<UIManager>
|
||||||
{
|
{
|
||||||
|
public ToolsItemManager ToolsItemManager;
|
||||||
|
public MobileTerminalController MobileTerminalController;
|
||||||
|
public AssignmentController assignmentController;
|
||||||
|
|
||||||
// Use this for initialization
|
// Use this for initialization
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
DontDestroyOnLoad(this);
|
DontDestroyOnLoad(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,129 +1,15 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class AssignmentPanel :MonoBehaviour
|
public class AssignmentPanel : MonoBehaviour
|
||||||
{
|
{
|
||||||
bool show = false;
|
|
||||||
public Text backgroundInformation;
|
|
||||||
public Text workOrderContent;
|
|
||||||
public Text GZTime;
|
|
||||||
public Text CuiZu;
|
|
||||||
public Text CLTime;
|
|
||||||
public Text loginText;
|
|
||||||
public Text GZTime2;
|
|
||||||
public Text loginText2;
|
|
||||||
public Text TQtext;
|
|
||||||
public Text XLtext;
|
|
||||||
public Button BackBtn;
|
|
||||||
public Button QUButton;
|
|
||||||
public Button magBtn;
|
public Button magBtn;
|
||||||
public Image RWText;
|
|
||||||
public Image bg;
|
|
||||||
public Image bg2;
|
|
||||||
public Image RWText22;
|
|
||||||
public Button RWButton;
|
|
||||||
public Button TQButton;
|
|
||||||
public Text RWText2;
|
|
||||||
public RectTransform TQbgtext;
|
|
||||||
public Button closeButton;
|
|
||||||
|
|
||||||
|
|
||||||
public string sceneName;
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
magBtn.onClick.AddListener(() => {
|
magBtn.onClick.AddListener(() =>
|
||||||
// GameObject.FindObjectOfType<ShouJ>().isk = true;
|
{
|
||||||
// bg.gameObject.SetActive(false);
|
UIManager.Instance.assignmentController.SwitchPanel(true);
|
||||||
// bg2.gameObject.SetActive(true);
|
gameObject.SetActive(false);
|
||||||
// bg2.GetComponent<RectTransform>().DOLocalMove(new Vector3(545, 2, 0), 2);
|
|
||||||
RWText.gameObject.SetActive(true);
|
|
||||||
});
|
|
||||||
QUButton.onClick.AddListener(() => {
|
|
||||||
Debug.Log(sceneName);
|
|
||||||
UnityEngine.SceneManagement.SceneManager.LoadScene(sceneName);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
public void WinDoScale()
|
|
||||||
{
|
|
||||||
//设置更改窗口的大小
|
|
||||||
Vector3 max = new Vector3(0.45f, 0.45f, 0.45f);
|
|
||||||
//设置变化时间
|
|
||||||
float time = 2f;
|
|
||||||
// bg.GetComponent<RectTransform>().DOScale(max, time);
|
|
||||||
// bg.GetComponent<RectTransform>().DOLocalMove(new Vector3(37, -12, 0), time);
|
|
||||||
}
|
|
||||||
//void BackClick()
|
|
||||||
//{
|
|
||||||
//BackBtn.onClick.AddListener(() => { ClosePanel<AssignmentPanel>(); });
|
|
||||||
//}
|
|
||||||
void magClick()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
//void RWClick()
|
|
||||||
//{
|
|
||||||
// RWButton.onClick.AddListener(() => {
|
|
||||||
// workOrderContent.gameObject.SetActive(true);
|
|
||||||
// TQbgtext.gameObject.SetActive(false);
|
|
||||||
// RWButton.GetComponent<Image>().sprite = Resources.Load<Sprite>("UI/AssignmentPanel/Texture/Btns/任务书-点击状态-2");
|
|
||||||
// TQButton.GetComponent<Image>().sprite = Resources.Load<Sprite>("UI/AssignmentPanel/Texture/Btns/背景资料-未点击状态");
|
|
||||||
// });
|
|
||||||
//}
|
|
||||||
//void TQBGClick()
|
|
||||||
//{
|
|
||||||
// TQButton.onClick.AddListener(() => { workOrderContent.gameObject.SetActive(false); TQbgtext.gameObject.SetActive(true); RWText22.gameObject.SetActive(true);
|
|
||||||
// RWButton.GetComponent<Image>().sprite = Resources.Load<Sprite>("UI/AssignmentPanel/Texture/Btns/任务书-未点击状态");
|
|
||||||
// TQButton.GetComponent<Image>().sprite = Resources.Load<Sprite>("UI/AssignmentPanel/Texture/Btns/背景资料-点击状态-2");
|
|
||||||
// });
|
|
||||||
//}
|
|
||||||
////public override void Active()
|
|
||||||
//{
|
|
||||||
// base.Active();
|
|
||||||
// if (show&&isActive())
|
|
||||||
// {
|
|
||||||
// Hide();
|
|
||||||
// return;
|
|
||||||
// }
|
|
||||||
// show = true;
|
|
||||||
// if (Data != null)
|
|
||||||
// {
|
|
||||||
// if ((int)Data == 1)
|
|
||||||
// {
|
|
||||||
// RWText22.gameObject.SetActive(true);
|
|
||||||
// bg.gameObject.SetActive(false);
|
|
||||||
// RWText.gameObject.SetActive(false);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
//if (transform.GetChild(0).gameObject.activeInHierarchy)
|
|
||||||
//{
|
|
||||||
// transform.GetChild(0).gameObject.SetActive(false);
|
|
||||||
//}
|
|
||||||
//else
|
|
||||||
//{
|
|
||||||
// transform.GetChild(0).gameObject.SetActive(true);
|
|
||||||
//}
|
|
||||||
// }
|
|
||||||
//public override void Hide()
|
|
||||||
//{
|
|
||||||
// base.Hide();
|
|
||||||
// show = false;
|
|
||||||
//}
|
|
||||||
//void assignmentRead()
|
|
||||||
//{
|
|
||||||
// for (int i = 0; i < ReadJson.Instance.r2.examJsons.Count; i++)
|
|
||||||
// {
|
|
||||||
// GZTime.text = ReadJson.Instance.r2.examJsons[i].GZTime;
|
|
||||||
// GZTime2.text = ReadJson.Instance.r2.examJsons[i].GZTime;
|
|
||||||
// CuiZu.text = ReadJson.Instance.r2.examJsons[i].CuiZu;
|
|
||||||
// CLTime.text = ReadJson.Instance.r2.examJsons[i].CLTime;
|
|
||||||
// TQtext.text = ReadJson.Instance.r2.examJsons[i].PlatformArea;
|
|
||||||
// XLtext.text = ReadJson.Instance.r2.examJsons[i].line;
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: e673c6dbe27e52743a6f2b8901c0c583
|
guid: c52cc6fbaf3513449a0e9d2d72c2bc65
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
|
@ -0,0 +1,64 @@
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEditor;
|
||||||
|
using System.IO;
|
||||||
|
//============================================================
|
||||||
|
//@author YangHua
|
||||||
|
//@create 2016/4/28
|
||||||
|
//@company QianHuo
|
||||||
|
//
|
||||||
|
//@description:把'81-C# Script-NewBehaviourScript.cs.txt'文件,
|
||||||
|
// 修改里面的作者为自己的名字,覆盖到:
|
||||||
|
// U3D安装目录\Editor\Data\Resources\ScriptTemplates中,
|
||||||
|
// 重启U3D。就可以在新建类时,自动根据文件目录生成命名空间。
|
||||||
|
//============================================================
|
||||||
|
|
||||||
|
namespace AMLab
|
||||||
|
{
|
||||||
|
public class TemplateKeyParser : UnityEditor.AssetModificationProcessor
|
||||||
|
{
|
||||||
|
private static string AUTHOR = "YangHua";
|
||||||
|
private static string COMPANY = "QianHuo";
|
||||||
|
public static void OnWillCreateAsset(string path)
|
||||||
|
{
|
||||||
|
//Debug.Log("TempleteKeyParser=>" + path);
|
||||||
|
path = path.Replace(".meta", "");
|
||||||
|
//不是.cs文件
|
||||||
|
if (path.EndsWith(".cs") == false) return;
|
||||||
|
//
|
||||||
|
int index = Application.dataPath.LastIndexOf("Assets");
|
||||||
|
//
|
||||||
|
string fullPath = Application.dataPath.Substring(0, index) + path;
|
||||||
|
//Debug.Log("full path => " + fullPath);
|
||||||
|
index = GetStringIndex(path);
|
||||||
|
if (index <= 0) return;
|
||||||
|
|
||||||
|
string ns = COMPANY;
|
||||||
|
int end = path.LastIndexOf("/");
|
||||||
|
if (end > index)
|
||||||
|
{
|
||||||
|
path = path.Substring(index, end - index);
|
||||||
|
ns = path.Replace("/", ".");
|
||||||
|
}
|
||||||
|
//
|
||||||
|
string file = File.ReadAllText(fullPath);
|
||||||
|
//
|
||||||
|
file = file.Replace("#AUTHOR#", AUTHOR);//Environment.UserName);
|
||||||
|
file = file.Replace("#CREATEDATE#", System.DateTime.Now.ToString("yyyyMMdd"));
|
||||||
|
file = file.Replace("#COMPANY#", COMPANY);
|
||||||
|
file = file.Replace("#NAMESPACE#", ns);
|
||||||
|
//
|
||||||
|
File.WriteAllText(fullPath, file);
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
}
|
||||||
|
private static int GetStringIndex(string path)
|
||||||
|
{
|
||||||
|
int index = path.LastIndexOf("Scripts/");
|
||||||
|
if (index > 0) return index + 8;
|
||||||
|
index = path.LastIndexOf("Plugins/");
|
||||||
|
if (index > 0) return index + 8;
|
||||||
|
index = path.LastIndexOf("Editor/");
|
||||||
|
if (index > 0 && path.IndexOf("TemplateKeyParser") < 0) return index + 7;
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: eeefcb557de1ee24fa4a5f05b67beaae
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Before Width: | Height: | Size: 602 KiB After Width: | Height: | Size: 602 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |