This commit is contained in:
parent
d6c153406b
commit
62bcabc764
|
@ -20,7 +20,7 @@ TextureImporter:
|
|||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
|
|
|
@ -3800,8 +3800,8 @@ RectTransform:
|
|||
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: -79, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -79, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358352968615918
|
||||
CanvasRenderer:
|
||||
|
@ -4294,8 +4294,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 379.9, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 379.9, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358352992362333
|
||||
CanvasRenderer:
|
||||
|
@ -5307,8 +5307,8 @@ RectTransform:
|
|||
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: 441, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 441, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353024018230
|
||||
CanvasRenderer:
|
||||
|
@ -7504,8 +7504,8 @@ RectTransform:
|
|||
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: 117, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 117, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353132609360
|
||||
CanvasRenderer:
|
||||
|
@ -8089,8 +8089,8 @@ RectTransform:
|
|||
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: -19, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -19, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353162755386
|
||||
CanvasRenderer:
|
||||
|
@ -10416,8 +10416,8 @@ RectTransform:
|
|||
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: 379.1, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 379.1, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353256417234
|
||||
CanvasRenderer:
|
||||
|
@ -11637,6 +11637,7 @@ MonoBehaviour:
|
|||
- {fileID: 543358354182566430}
|
||||
- {fileID: 543358354733031747}
|
||||
- {fileID: 543358354311245715}
|
||||
scrollRect: {fileID: 543358353741993157}
|
||||
--- !u!1 &543358353285438343
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -11902,8 +11903,8 @@ RectTransform:
|
|||
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: 182, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 182, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353296498763
|
||||
CanvasRenderer:
|
||||
|
@ -13370,8 +13371,8 @@ RectTransform:
|
|||
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: 43.5, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 43.5, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353351190170
|
||||
CanvasRenderer:
|
||||
|
@ -14932,8 +14933,8 @@ RectTransform:
|
|||
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: 243.4, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 243.4, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353419320828
|
||||
CanvasRenderer:
|
||||
|
@ -16560,8 +16561,8 @@ RectTransform:
|
|||
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: -19.2, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -19.2, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353528870857
|
||||
CanvasRenderer:
|
||||
|
@ -17254,8 +17255,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: -18, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -18, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353551386357
|
||||
CanvasRenderer:
|
||||
|
@ -17982,8 +17983,8 @@ RectTransform:
|
|||
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: -78.7, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -78.7, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353603384590
|
||||
CanvasRenderer:
|
||||
|
@ -18209,8 +18210,8 @@ RectTransform:
|
|||
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: 317, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 317, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353604468536
|
||||
CanvasRenderer:
|
||||
|
@ -18432,8 +18433,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 181, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 181, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353607435969
|
||||
CanvasRenderer:
|
||||
|
@ -21226,8 +21227,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 44, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 44, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353803151495
|
||||
CanvasRenderer:
|
||||
|
@ -21450,8 +21451,8 @@ RectTransform:
|
|||
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: 243, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 243, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353810604100
|
||||
CanvasRenderer:
|
||||
|
@ -22665,8 +22666,8 @@ RectTransform:
|
|||
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: 379, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 379, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353876521844
|
||||
CanvasRenderer:
|
||||
|
@ -23585,8 +23586,8 @@ RectTransform:
|
|||
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: 45.00001, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 45.00001, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353921107065
|
||||
CanvasRenderer:
|
||||
|
@ -23812,8 +23813,8 @@ RectTransform:
|
|||
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: -19, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -19, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353931047662
|
||||
CanvasRenderer:
|
||||
|
@ -23959,8 +23960,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 316.1, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 316.1, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353938187004
|
||||
CanvasRenderer:
|
||||
|
@ -24724,8 +24725,8 @@ RectTransform:
|
|||
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: 44, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 44, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358353959535231
|
||||
CanvasRenderer:
|
||||
|
@ -26831,8 +26832,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 441.8, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 441.8, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354064793151
|
||||
CanvasRenderer:
|
||||
|
@ -28836,8 +28837,8 @@ RectTransform:
|
|||
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: 117.3, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 117.3, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354151262103
|
||||
CanvasRenderer:
|
||||
|
@ -30573,8 +30574,8 @@ RectTransform:
|
|||
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: 244, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 244, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354248449358
|
||||
CanvasRenderer:
|
||||
|
@ -31008,8 +31009,8 @@ RectTransform:
|
|||
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: 179, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 179, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354267907580
|
||||
CanvasRenderer:
|
||||
|
@ -31871,7 +31872,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &543358354311245716
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -32004,8 +32005,8 @@ RectTransform:
|
|||
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: 318, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 318, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354311952838
|
||||
CanvasRenderer:
|
||||
|
@ -32730,8 +32731,8 @@ RectTransform:
|
|||
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: 118.4, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 118.4, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354349855754
|
||||
CanvasRenderer:
|
||||
|
@ -34700,8 +34701,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 242, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 242, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354442638840
|
||||
CanvasRenderer:
|
||||
|
@ -35404,8 +35405,8 @@ RectTransform:
|
|||
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: 442, y: -41.7}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 442, y: -40.30077}
|
||||
m_SizeDelta: {x: 40, y: 34.3955}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354498448021
|
||||
CanvasRenderer:
|
||||
|
@ -35655,8 +35656,8 @@ RectTransform:
|
|||
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: 442.7, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 442.7, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354500423344
|
||||
CanvasRenderer:
|
||||
|
@ -38492,8 +38493,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: -81, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -81, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354659536160
|
||||
CanvasRenderer:
|
||||
|
@ -38866,8 +38867,8 @@ RectTransform:
|
|||
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: 317.2, y: -170}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 317.2, y: -170.53229}
|
||||
m_SizeDelta: {x: 40, y: 33.4515}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354678181835
|
||||
CanvasRenderer:
|
||||
|
@ -40188,8 +40189,8 @@ RectTransform:
|
|||
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: -80.9, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: -80.9, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354751399331
|
||||
CanvasRenderer:
|
||||
|
@ -40699,8 +40700,8 @@ RectTransform:
|
|||
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: 179.9, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 179.9, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354763645500
|
||||
CanvasRenderer:
|
||||
|
@ -41371,8 +41372,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 119, y: 72}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 119, y: 74.129}
|
||||
m_SizeDelta: {x: 40, y: 32.387}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354792940624
|
||||
CanvasRenderer:
|
||||
|
@ -42468,8 +42469,8 @@ RectTransform:
|
|||
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: 380, y: 87}
|
||||
m_SizeDelta: {x: 40, y: 26}
|
||||
m_AnchoredPosition: {x: 380, y: 88.648315}
|
||||
m_SizeDelta: {x: 40, y: 35.1572}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &543358354856385734
|
||||
CanvasRenderer:
|
||||
|
|
|
@ -192,7 +192,7 @@ RectTransform:
|
|||
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: 183, y: 315}
|
||||
m_AnchoredPosition: {x: 183, y: 358}
|
||||
m_SizeDelta: {x: 386, y: 48}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3587858327418919888
|
||||
|
@ -38315,7 +38315,7 @@ RectTransform:
|
|||
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: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 24}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3528463816179997083
|
||||
|
|
|
@ -5828,7 +5828,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u3010\u6848\u4F8B5\u3011\u67D0\u5DE5\u4E1A\u7528\u6237\uFF0C10kV\u5355\u7535\u6E90\u4F9B\u7535\uFF0C\u9AD8\u4F9B\u4F4E\u8BA1\uFF0C\u603B\u5BB9\u91CF500kVA\uFF0C\u57FA\u672C\u7535\u8D39\u6309\u7167\u5BB9\u91CF\u6536\u53D6\uFF0C\u8BA1\u91CF\u70B9\u4E00\u7EA7\u4E3A\u9876\u7EA7\uFF0CTA\u4E3A800/5\uFF0C\u8BA1\u91CF\u70B9\u4E8C\u4E3A\u8BA1\u91CF\u70B9\u4E00\u7684\u5B50\u8868\uFF0C\u5B9A\u91CF300kWh/\u6708\u529E\u516C\u7167\u660E\u7528\u7535\uFF0C\u53D8\u635F\u8BA1\u8D39\u6807\u5FD7\u4E3A\u662F\uFF0C\u53D8\u538B\u5668\u6709\u529F\u94C1\u635F490kWh\uFF0C\u65E0\u529F\u94C1\u635F3528kvarh\uFF0C\u65E0\u529Fk\u503C3.75\uFF1B2018\u5E7411\u6708\u6284\u8868\u6570\u636E\u4EE5\u53CA\u7535\u4EF7\u89C1\u8868JN=27-C-001-4\uFF0C\u7535\u4EF7\u6309\u5F53\u65F6\u7535\u4EF7\u653F\u7B56\u6267\u884C\u3002"
|
||||
m_Text: "\u67D0\u5DE5\u4E1A\u7528\u6237\uFF0C10kV\u5355\u7535\u6E90\u4F9B\u7535\uFF0C\u9AD8\u4F9B\u4F4E\u8BA1\uFF0C\u603B\u5BB9\u91CF500kVA\uFF0C\u57FA\u672C\u7535\u8D39\u6309\u7167\u5BB9\u91CF\u6536\u53D6\uFF0C\u8BA1\u91CF\u70B9\u4E00\u7EA7\u4E3A\u9876\u7EA7\uFF0CTA\u4E3A800/5\uFF0C\u8BA1\u91CF\u70B9\u4E8C\u4E3A\u8BA1\u91CF\u70B9\u4E00\u7684\u5B50\u8868\uFF0C\u5B9A\u91CF300kWh/\u6708\u529E\u516C\u7167\u660E\u7528\u7535\uFF0C\u53D8\u635F\u8BA1\u8D39\u6807\u5FD7\u4E3A\u662F\uFF0C\u53D8\u538B\u5668\u6709\u529F\u94C1\u635F490kWh\uFF0C\u65E0\u529F\u94C1\u635F3528kvarh\uFF0C\u65E0\u529Fk\u503C3.75\uFF1B2018\u5E7411\u6708\u6284\u8868\u6570\u636E\u4EE5\u53CA\u7535\u4EF7\u89C1\u8868JN=27-C-001-4\uFF0C\u7535\u4EF7\u6309\u5F53\u65F6\u7535\u4EF7\u653F\u7B56\u6267\u884C\u3002"
|
||||
--- !u!1 &677610930488115752
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -9955,7 +9955,7 @@ RectTransform:
|
|||
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: 217, y: -74}
|
||||
m_AnchoredPosition: {x: 202, y: -70}
|
||||
m_SizeDelta: {x: 1448, y: 815}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &677610930753836299
|
||||
|
@ -23787,7 +23787,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
|
@ -25792,7 +25792,7 @@ RectTransform:
|
|||
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: -894, y: -429}
|
||||
m_AnchoredPosition: {x: -890, y: -417}
|
||||
m_SizeDelta: {x: 72, y: 72}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &677610931831131624
|
||||
|
@ -28605,7 +28605,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
|
|
|
@ -4924,6 +4924,7 @@ MonoBehaviour:
|
|||
- {fileID: 3944125505302910917}
|
||||
- {fileID: 3944125506868251640}
|
||||
- {fileID: 3944125506878495673}
|
||||
scrollRect: {fileID: 3944125505315095330}
|
||||
--- !u!1 &3944125507227023861
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -1 +1 @@
|
|||
2024-04-29 13:35:53#'test://;lyht,0,17,userId,username,Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI2MDFjZTIwLWJlOTktNGQwMy1hNmVhLTMzYjY1ODkxM2E4YiJ9.JDu85hTysDmhD1WwNNXzJ0o8UtsPDH3ONnMAYXZPBxy2VhzhF51dDpPkPIRftSGO-dyZeQFCgWkU5Nj6gx1AoQ;/'|
|
||||
2024-04-29 13:35:53#'test://;gdht,0,28,123,username,token,90,calssID,Bearer%20eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI2MDFjZTIwLWJlOTktNGQwMy1hNmVhLTMzYjY1ODkxM2E4YiJ9.JDu85hTysDmhD1WwNNXzJ0o8UtsPDH3ONnMAYXZPBxy2VhzhF51dDpPkPIRftSGO-dyZeQFCgWkU5Nj6gx1AoQ;/'|
|
|
@ -485,9 +485,35 @@ MonoBehaviour:
|
|||
updateBy:
|
||||
updateTime:
|
||||
examContents: []
|
||||
scores: []
|
||||
totalpoints: []
|
||||
testcenters: []
|
||||
Performancetestsites: []
|
||||
Honourscores:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
Electricitytestscores:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
Powersupplytests:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
--- !u!114 &286242098
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -497,9 +523,275 @@ MonoBehaviour:
|
|||
m_GameObject: {fileID: 286242094}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3c9d9e712b58343499d737bdda5eb8ae, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: 794d97d16bb391d45a43a9abff886dc7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &569914927
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 569914928}
|
||||
- component: {fileID: 569914931}
|
||||
- component: {fileID: 569914930}
|
||||
- component: {fileID: 569914929}
|
||||
m_Layer: 5
|
||||
m_Name: Powersupplyexercise
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &569914928
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 569914927}
|
||||
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: 1337615667}
|
||||
m_RootOrder: 4
|
||||
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: 0, y: 118}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &569914929
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 569914927}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 569914930}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1337615668}
|
||||
m_TargetAssemblyTypeName: MainSelect, Assembly-CSharp
|
||||
m_MethodName: Powersupplyexercises
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &569914930
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 569914927}
|
||||
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
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!222 &569914931
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 569914927}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &769498519
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 769498520}
|
||||
- component: {fileID: 769498523}
|
||||
- component: {fileID: 769498522}
|
||||
- component: {fileID: 769498521}
|
||||
m_Layer: 5
|
||||
m_Name: Powersupplytest
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &769498520
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 769498519}
|
||||
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: 1337615667}
|
||||
m_RootOrder: 5
|
||||
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: -273, y: 117}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &769498521
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 769498519}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 769498522}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 1337615668}
|
||||
m_TargetAssemblyTypeName: MainSelect, Assembly-CSharp
|
||||
m_MethodName: Powersupplytests
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!114 &769498522
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 769498519}
|
||||
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: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
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!222 &769498523
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 769498519}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &826145497
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -882,6 +1174,8 @@ RectTransform:
|
|||
- {fileID: 268923475}
|
||||
- {fileID: 2016034861}
|
||||
- {fileID: 1924386026}
|
||||
- {fileID: 569914928}
|
||||
- {fileID: 769498520}
|
||||
m_Father: {fileID: 826145501}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -904,8 +1198,10 @@ MonoBehaviour:
|
|||
m_EditorClassIdentifier:
|
||||
practicebutton: {fileID: 255711216}
|
||||
examinationbutton: {fileID: 268923476}
|
||||
Powersupplytest: {fileID: 2016034862}
|
||||
Electricchargeexercise: {fileID: 2016034862}
|
||||
Electricityfeetest: {fileID: 1924386027}
|
||||
Powersupplyexercise: {fileID: 569914929}
|
||||
Powersupplytest: {fileID: 769498521}
|
||||
--- !u!114 &1337615669
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1111,7 +1407,7 @@ GameObject:
|
|||
- component: {fileID: 2016034863}
|
||||
- component: {fileID: 2016034862}
|
||||
m_Layer: 5
|
||||
m_Name: Powersupplytest
|
||||
m_Name: Electricchargeexercise
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,6 +47,26 @@ public class Administrativefile : MonoBehaviour
|
|||
/// </summary>
|
||||
public GameObject Transfercontract;
|
||||
/// <summary>
|
||||
/// 低压供电合同
|
||||
/// </summary>
|
||||
public GameObject Lowpowersupplycontract;
|
||||
/// <summary>
|
||||
/// 非自然人分布式光伏发电项目购售合同
|
||||
/// </summary>
|
||||
public GameObject Nonnaturalperson;
|
||||
/// <summary>
|
||||
/// 高压供电合同
|
||||
/// </summary>
|
||||
public GameObject highvoltagepowersupply;
|
||||
/// <summary>
|
||||
/// 临时供电合同
|
||||
/// </summary>
|
||||
public GameObject Temporarypowersupply;
|
||||
/// <summary>
|
||||
/// 自然人分布式光伏发电项目购售电合同
|
||||
/// </summary>
|
||||
public GameObject Contractofnaturalperson;
|
||||
/// <summary>
|
||||
/// 存取合同对象
|
||||
/// </summary>
|
||||
public List<GameObject> contract = new List<GameObject>();
|
||||
|
@ -54,6 +74,25 @@ public class Administrativefile : MonoBehaviour
|
|||
/// 存放的图片链表
|
||||
/// </summary>
|
||||
public List<Texture2D> pictures = new List<Texture2D>();
|
||||
/// <summary>
|
||||
/// 获取当前时间
|
||||
/// </summary>
|
||||
private string Time
|
||||
{
|
||||
get { return System.DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss"); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 提示导出路劲页面框
|
||||
/// </summary>
|
||||
public GameObject Overlay;
|
||||
/// <summary>
|
||||
/// 显示路径
|
||||
/// </summary>
|
||||
public InputField derivedpath;
|
||||
/// <summary>
|
||||
/// 把路劲页面失活
|
||||
/// </summary>
|
||||
public Button verify;
|
||||
void Start()
|
||||
{
|
||||
Init();
|
||||
|
@ -63,6 +102,11 @@ public class Administrativefile : MonoBehaviour
|
|||
{
|
||||
residentcontract = Resources.Load<GameObject>("UIpanel/residentcontract");
|
||||
Transfercontract = Resources.Load<GameObject>("UIpanel/Transfercontract");
|
||||
Lowpowersupplycontract = Resources.Load<GameObject>("UIpanel/Lowpowersupplycontract");
|
||||
Nonnaturalperson = Resources.Load<GameObject>("UIpanel/Nonnaturalperson");
|
||||
highvoltagepowersupply = Resources.Load<GameObject>("UIpanel/highvoltagepowersupply");
|
||||
Temporarypowersupply = Resources.Load<GameObject>("UIpanel/Temporarypowersupply");
|
||||
Contractofnaturalperson = Resources.Load<GameObject>("UIpanel/Contractofnaturalperson");
|
||||
if (derive == Derive.Residentcontract)
|
||||
{
|
||||
Deletecontract();
|
||||
|
@ -82,26 +126,48 @@ public class Administrativefile : MonoBehaviour
|
|||
{
|
||||
case Derive.Residentcontract:
|
||||
EquippingItems();
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, "d:\\¾ÓÃñ±³ÊéºÏͬ.pdf"));//´òÓ¡
|
||||
derivedpath.text = "d:\\居民背书合同" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Transfercontract:
|
||||
EquippingItems();
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, "d:\\ת¹©µçºÏͬ.pdf"));//´òÓ¡
|
||||
derivedpath.text = "d:\\转供电合同" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Lowpressurecontract:
|
||||
EquippingItems();
|
||||
derivedpath.text = "d:\\低压供用电合同(2022版)" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Naturalcontract:
|
||||
EquippingItems();
|
||||
derivedpath.text = "d:\\非自然人分布式光伏发电项目购售" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Highpressurecontract:
|
||||
EquippingItems();
|
||||
derivedpath.text = "d:\\高压供电合同" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Temporarycontract:
|
||||
EquippingItems();
|
||||
derivedpath.text = "d:\\临时供电合同(2022)版" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
case Derive.Powergenerationproject:
|
||||
EquippingItems();
|
||||
derivedpath.text = "d:\\自然人分布式光伏发电项目购售电合同" + Time + ".pdf";
|
||||
StartCoroutine(CaptureScreenshot(transfercontract.inhabitants, derivedpath.text));//打印
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
});
|
||||
verify.onClick.AddListener(() =>
|
||||
{
|
||||
derivedpath.text = "";
|
||||
Overlay.SetActive(false);
|
||||
});
|
||||
}
|
||||
public void EquippingItems()
|
||||
{
|
||||
|
@ -157,6 +223,91 @@ public class Administrativefile : MonoBehaviour
|
|||
}
|
||||
}
|
||||
});
|
||||
lowpressuretoggle.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
if (ison)
|
||||
{
|
||||
derive = Derive.Lowpressurecontract;
|
||||
Deletecontract();
|
||||
if (Lowpowersupplycontract)
|
||||
{
|
||||
GameObject residentcontracts = Instantiate(Lowpowersupplycontract, operatingarea);
|
||||
contract.Add(residentcontracts);
|
||||
if (residentcontracts)
|
||||
{
|
||||
transfercontract = residentcontracts.GetComponent<Transfercontract>();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
artificialtoggle.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
if (ison)
|
||||
{
|
||||
derive = Derive.Naturalcontract;
|
||||
Deletecontract();
|
||||
if (Nonnaturalperson)
|
||||
{
|
||||
GameObject residentcontracts = Instantiate(Nonnaturalperson, operatingarea);
|
||||
contract.Add(residentcontracts);
|
||||
if (residentcontracts)
|
||||
{
|
||||
transfercontract = residentcontracts.GetComponent<Transfercontract>();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
hightensiontoggle.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
if (ison)
|
||||
{
|
||||
derive = Derive.Highpressurecontract;
|
||||
Deletecontract();
|
||||
if (highvoltagepowersupply)
|
||||
{
|
||||
GameObject residentcontracts = Instantiate(highvoltagepowersupply, operatingarea);
|
||||
contract.Add(residentcontracts);
|
||||
if (residentcontracts)
|
||||
{
|
||||
transfercontract = residentcontracts.GetComponent<Transfercontract>();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
temporarilytoggle.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
if (ison)
|
||||
{
|
||||
derive = Derive.Temporarycontract;
|
||||
Deletecontract();
|
||||
if (Temporarypowersupply)
|
||||
{
|
||||
GameObject residentcontracts = Instantiate(Temporarypowersupply, operatingarea);
|
||||
contract.Add(residentcontracts);
|
||||
if (residentcontracts)
|
||||
{
|
||||
transfercontract = residentcontracts.GetComponent<Transfercontract>();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
naturalpersontoggle.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
if (ison)
|
||||
{
|
||||
derive = Derive.Powergenerationproject;
|
||||
Deletecontract();
|
||||
if (Contractofnaturalperson)
|
||||
{
|
||||
GameObject residentcontracts = Instantiate(Contractofnaturalperson, operatingarea);
|
||||
contract.Add(residentcontracts);
|
||||
if (residentcontracts)
|
||||
{
|
||||
transfercontract = residentcontracts.GetComponent<Transfercontract>();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 把图片转成pdf格式
|
||||
|
@ -181,6 +332,7 @@ public class Administrativefile : MonoBehaviour
|
|||
Texture2D[] intArray = pictures.ToArray();
|
||||
Convert2PDF(intArray, path);
|
||||
transfercontract.Restore(0);
|
||||
Overlay.SetActive(true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -188,30 +340,16 @@ public class Administrativefile : MonoBehaviour
|
|||
/// </summary>
|
||||
public void Picture(Image images)
|
||||
{
|
||||
bool isActive = images.gameObject.activeSelf;
|
||||
if (isActive)
|
||||
{
|
||||
images.gameObject.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
images.gameObject.SetActive(false);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 把图片激活
|
||||
/// </summary>
|
||||
public void Picture2(Image images)
|
||||
{
|
||||
bool isActive = images.gameObject.activeSelf;
|
||||
if (isActive)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
images.gameObject.SetActive(true);
|
||||
}
|
||||
images.gameObject.SetActive(true);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 删除方法
|
||||
|
|
|
@ -138,4 +138,48 @@ public class ExamContent
|
|||
public class ExamContentWrapper
|
||||
{
|
||||
public ExamContent[] examContent; // 数组的字段名称可以根据JSON字符串中的键来命名
|
||||
}
|
||||
[Serializable]
|
||||
public class StepListItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 检查工器具
|
||||
/// </summary>
|
||||
public string stepName;
|
||||
/// <summary>
|
||||
/// 填写现场工作卡(通过下拉菜单来填写)
|
||||
/// </summary>
|
||||
public string testPoint;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public float score;
|
||||
}
|
||||
[Serializable]
|
||||
public class Performancetestscore
|
||||
{
|
||||
/// <summary>
|
||||
/// 张三
|
||||
/// </summary>
|
||||
public string userName;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string userId;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int examId;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int classId;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string userime;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public List<StepListItem> stepList = new List<StepListItem>();
|
||||
}
|
|
@ -68,6 +68,10 @@ public class ControlsManager : MonoBehaviour
|
|||
/// µç·ÑºËËãÒ³Ãæ
|
||||
/// </summary>
|
||||
public GameObject electricchargepanl;
|
||||
/// <summary>
|
||||
/// »ñÈ¡Ìá½»°´Å¥
|
||||
/// </summary>
|
||||
public Button submitbutton;
|
||||
void Start()
|
||||
{
|
||||
Init();
|
||||
|
@ -190,6 +194,7 @@ public class ControlsManager : MonoBehaviour
|
|||
retreatypanl.SetActive(false);
|
||||
powersupplypanl.SetActive(false);
|
||||
electricchargepanl.SetActive(true);
|
||||
submitbutton.gameObject.SetActive(true);
|
||||
ScoreManager.Instance.Subject = Subject.Electricchargeexercise;
|
||||
|
||||
break;
|
||||
|
@ -198,16 +203,18 @@ public class ControlsManager : MonoBehaviour
|
|||
retreatypanl.SetActive(false);
|
||||
powersupplypanl.SetActive(true);
|
||||
electricchargepanl.SetActive(false);
|
||||
submitbutton.gameObject.SetActive(false);
|
||||
ScoreManager.Instance.Subject = Subject.Aluminoelectricexercise;
|
||||
|
||||
|
||||
break;
|
||||
case Title.retreaty:
|
||||
topicswitchingpanl.SetActive(false);
|
||||
retreatypanl.SetActive(true);
|
||||
powersupplypanl.SetActive(false);
|
||||
electricchargepanl.SetActive(false);
|
||||
submitbutton.gameObject.SetActive(true);
|
||||
ScoreManager.Instance.Subject = Subject.Performanceexercise;
|
||||
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SocialPlatforms.Impl;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class Electricitychargeaccounting : MonoBehaviour
|
||||
|
@ -42,7 +43,7 @@ public class Electricitychargeaccounting : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 用来管理题目
|
||||
/// </summary>
|
||||
public Dictionary<string,string> topicdics = new Dictionary<string,string>();
|
||||
public Dictionary<string, string> topicdics = new Dictionary<string, string>();
|
||||
/// <summary>
|
||||
/// 第一答题第一小题的初始分数
|
||||
/// </summary>
|
||||
|
@ -97,8 +98,249 @@ public class Electricitychargeaccounting : MonoBehaviour
|
|||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 计算电费核算考试得分
|
||||
/// </summary>
|
||||
public void Electricitytestscore()
|
||||
{
|
||||
Thefirststep();//第一步
|
||||
if (Calculateinput2[9].text == "223332")//第二个得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[1] = float.Parse(ScoreManager.Instance.totalpoints[1]);
|
||||
}
|
||||
Thesecondstepcountspoints();//第三步得分
|
||||
Thefourthstepistocountpoints();//第四步得分
|
||||
if (Calculateinput2[13].text == "1380.84")//第五步得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[4] = float.Parse(ScoreManager.Instance.totalpoints[4]);
|
||||
}
|
||||
if (Calculateinput2[17].text == "15000")//第六步得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[5] = float.Parse(ScoreManager.Instance.totalpoints[5]);
|
||||
}
|
||||
StepCountpoints();//第七步得分
|
||||
if (Calculateinput2[21].text == "216.42")//第八步得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[7] = float.Parse(ScoreManager.Instance.totalpoints[7]);
|
||||
}
|
||||
Stepninecountspoints();//第九步得分
|
||||
Steptencountspoints();//第十步得分
|
||||
if (Calculateinput2[26].text == "-1.24")//第十一步得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[10] = float.Parse(ScoreManager.Instance.totalpoints[10]);
|
||||
}
|
||||
if (Calculateinput2[27].text == "144723.89")//第十二步得分
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[11] = float.Parse(ScoreManager.Instance.totalpoints[11]);
|
||||
}
|
||||
float score1 = float.Parse(ScoreManager.Instance.totalpoints[0]);
|
||||
float scoers = (float.Parse(ScoreManager.Instance.totalpoints[0]) * 0.2f);
|
||||
for (int i = 0; i < awards.Count; i++)
|
||||
{
|
||||
if (awards[i] == false)
|
||||
{
|
||||
score1 -= scoers;
|
||||
}
|
||||
}
|
||||
if (score1 < 0)
|
||||
{
|
||||
score1 = 0;
|
||||
ScoreManager.Instance.Electricitytestscores[0] = score1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ScoreManager.Instance.Electricitytestscores[0] = score1;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 第十步得分
|
||||
/// </summary>
|
||||
private void Steptencountspoints()
|
||||
{
|
||||
string str;
|
||||
float score = 0f;
|
||||
float score1 = (float.Parse(ScoreManager.Instance.totalpoints[6]) / 2);
|
||||
if ((score1 - Mathf.Floor(score1)) < 0.001f)
|
||||
{
|
||||
str = score1.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score1.ToString("0.000");
|
||||
}
|
||||
if (Calculateinput2[24].text == "-340.88")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[25].text == "-152.63")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
ScoreManager.Instance.Electricitytestscores[9] = score;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 第九步得分
|
||||
/// </summary>
|
||||
private void Stepninecountspoints()
|
||||
{
|
||||
string str;
|
||||
float score = 0f;
|
||||
float score1 = (float.Parse(ScoreManager.Instance.totalpoints[6]) / 2);
|
||||
if ((score1 - Mathf.Floor(score1)) < 0.001f)
|
||||
{
|
||||
str = score1.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score1.ToString("0.000");
|
||||
}
|
||||
if (Calculateinput2[22].text == "-90")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[23].text == "-243.48")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
ScoreManager.Instance.Electricitytestscores[8] = score;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 第七步得分
|
||||
/// </summary>
|
||||
private void StepCountpoints()
|
||||
{
|
||||
string str;
|
||||
float score = 0f;
|
||||
float score1 = (float.Parse(ScoreManager.Instance.totalpoints[6]) / 3);
|
||||
if ((score1 - Mathf.Floor(score1)) < 0.001f)
|
||||
{
|
||||
str = score1.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score1.ToString("0.000");
|
||||
}
|
||||
if (Calculateinput2[18].text == "41895.87")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[19].text == "59952.46")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[20].text == "28487.37")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
ScoreManager.Instance.Electricitytestscores[6] = score;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 第四步得分
|
||||
/// </summary>
|
||||
private void Thefourthstepistocountpoints()
|
||||
{
|
||||
string str;
|
||||
float score = 0f;
|
||||
float score1 = (float.Parse(ScoreManager.Instance.totalpoints[3]) / 3);
|
||||
if ((score1 - Mathf.Floor(score1)) < 0.001f)
|
||||
{
|
||||
str = score1.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score1.ToString("0.000");
|
||||
}
|
||||
if (Calculateinput2[14].text == "39166")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[15].text == "90753")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[16].text == "93413")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
ScoreManager.Instance.Electricitytestscores[3] = score;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 第三个得分
|
||||
/// </summary>
|
||||
private void Thesecondstepcountspoints()
|
||||
{
|
||||
string str;
|
||||
float score = 0f;
|
||||
float score1 = (float.Parse(ScoreManager.Instance.totalpoints[2]) / 3);
|
||||
if ((score1 - Mathf.Floor(score1)) < 0.001f)
|
||||
{
|
||||
str = score1.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score1.ToString("0.000");
|
||||
}
|
||||
if (Calculateinput2[10].text == "242.16")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[11].text == "577.56")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
if (Calculateinput2[12].text == "561.12")
|
||||
{
|
||||
score += float.Parse(str);
|
||||
}
|
||||
ScoreManager.Instance.Electricitytestscores[2] = score;
|
||||
}
|
||||
/// <summary>
|
||||
/// 第一题练习
|
||||
/// </summary>
|
||||
private void Thefirststep()
|
||||
{
|
||||
if (Calculateinput2[0].text == "220933")
|
||||
{
|
||||
awards[0] = true;
|
||||
}
|
||||
if (Calculateinput2[1].text == "490")
|
||||
{
|
||||
awards[1] = true;
|
||||
}
|
||||
if (Calculateinput2[2].text == "2209")
|
||||
{
|
||||
awards[2] = true;
|
||||
}
|
||||
if (Calculateinput2[3].text == "223632")
|
||||
{
|
||||
awards[3] = true;
|
||||
}
|
||||
if (Calculateinput2[4].text == "69214")
|
||||
{
|
||||
awards[4] = true;
|
||||
}
|
||||
if (Calculateinput2[5].text == "0")
|
||||
{
|
||||
awards[5] = true;
|
||||
}
|
||||
if (Calculateinput2[6].text == "3528")
|
||||
{
|
||||
awards[6] = true;
|
||||
}
|
||||
if (Calculateinput2[7].text == "8284")
|
||||
{
|
||||
awards[7] = true;
|
||||
}
|
||||
if (Calculateinput2[8].text == "81026")
|
||||
{
|
||||
awards[8] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Calculatescore()
|
||||
{
|
||||
if (Calculateinput[0].text == "220933kWh")
|
||||
|
@ -219,7 +461,7 @@ public class Electricitychargeaccounting : MonoBehaviour
|
|||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 计算第一题
|
||||
/// 计算电费核算练习得分
|
||||
/// </summary>
|
||||
public void Calculatescore2()
|
||||
{
|
||||
|
@ -337,12 +579,12 @@ public class Electricitychargeaccounting : MonoBehaviour
|
|||
}
|
||||
for (int i = 0; i < awards.Count; i++)
|
||||
{
|
||||
if (awards[i]==false)
|
||||
if (awards[i] == false)
|
||||
{
|
||||
awardofpoints -= 2f;
|
||||
}
|
||||
}
|
||||
if (awardofpoints<0)
|
||||
if (awardofpoints < 0)
|
||||
{
|
||||
awardofpoints = 0;
|
||||
}
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
public static class InterfaceManager
|
||||
{
|
||||
private static string _IP = "172.16.1.138";
|
||||
private static string _IP = "172.16.1.127";
|
||||
public static string IP
|
||||
{
|
||||
get { return _IP; }
|
||||
|
@ -31,8 +33,15 @@ public static class InterfaceManager
|
|||
}
|
||||
}
|
||||
public static string IpAddress { get => string.Format("http://{0}:{1}", IP, Port); }
|
||||
|
||||
/// <summary>
|
||||
/// »ñÈ¡ÊÔ¾í½Ó¿Ú
|
||||
/// </summary>
|
||||
public static string Performancecontract { get => IpAddress + "/proSimulationExamination/queryById?"; }
|
||||
/// <summary>
|
||||
/// Ìá½»ÊÔ¾í
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static string Submittheperformanceexam { get => IpAddress + "/pro/score/simulationScore"; }
|
||||
public static string GetLocalTxt(string path)
|
||||
{
|
||||
using (System.IO.StreamReader reader = new System.IO.StreamReader(path)) { return reader.ReadToEnd(); }
|
||||
|
@ -137,9 +146,10 @@ public static class InterfaceManager
|
|||
/// <param name="keyvaluepir">字典方式传入值</param>
|
||||
/// <param name="callback">回调方法</param>
|
||||
/// <returns></returns>
|
||||
public static IEnumerator Poststring(string url, Dictionary<string, string> keyvaluepir, Action<bool, string> callback)
|
||||
public static IEnumerator Poststring(string url, Dictionary<string, string> keyvaluepir = null, Action<bool, string> callback = null)
|
||||
{
|
||||
WWWForm wWWForm = new WWWForm();
|
||||
|
||||
foreach (var item in keyvaluepir)
|
||||
{
|
||||
wWWForm.AddField(item.Key, item.Value);
|
||||
|
@ -156,6 +166,7 @@ public static class InterfaceManager
|
|||
if (!string.IsNullOrEmpty(www.downloadHandler.text))
|
||||
{
|
||||
callback(true, www.downloadHandler.text);
|
||||
Debug.Log(www.downloadHandler.text);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -164,7 +175,27 @@ public static class InterfaceManager
|
|||
}
|
||||
}
|
||||
}
|
||||
public static IEnumerator PoststringByRaw(string url,string json)
|
||||
{
|
||||
UnityWebRequest request = new UnityWebRequest(url, "POST");
|
||||
|
||||
byte[] bodyData = Encoding.ASCII.GetBytes(json);
|
||||
request.SetRequestHeader("Content-Type", "application/json");
|
||||
request.uploadHandler = new UploadHandlerRaw(bodyData);
|
||||
request.downloadHandler = new DownloadHandlerBuffer();
|
||||
yield return request.SendWebRequest();
|
||||
|
||||
if (request.result != UnityWebRequest.Result.Success)
|
||||
{
|
||||
Debug.LogError("Error: " + request.error);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("Response: " + request.downloadHandler.text);
|
||||
}
|
||||
|
||||
request.Dispose();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -1,16 +1,38 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Xml.Serialization;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class MainSelect : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 薩埮褶炾偌聽
|
||||
/// </summary>
|
||||
public Button practicebutton;
|
||||
/// <summary>
|
||||
/// 薩埮蕉彸偌聽
|
||||
/// </summary>
|
||||
public Button examinationbutton;
|
||||
public Button Powersupplytest;
|
||||
/// <summary>
|
||||
/// 萇煤瞄呾褶炾偌聽
|
||||
/// </summary>
|
||||
public Button Electricchargeexercise;
|
||||
/// <summary>
|
||||
/// 萇煤瞄呾蕉彸偌聽
|
||||
/// </summary>
|
||||
public Button Electricityfeetest;
|
||||
/// <summary>
|
||||
/// 鼎萇褶炾偌聽
|
||||
/// </summary>
|
||||
public Button Powersupplyexercise;
|
||||
/// <summary>
|
||||
/// 鼎萇蕉彸偌聽
|
||||
/// </summary>
|
||||
public Button Powersupplytest;
|
||||
void Start()
|
||||
{
|
||||
|
||||
|
@ -41,8 +63,19 @@ public class MainSelect : MonoBehaviour
|
|||
ScoreManager.Instance.Subject = Subject.Electricityfeetest;
|
||||
SceneManager.LoadScene("shanxii");
|
||||
}
|
||||
public void Powersupplyexercises()
|
||||
{
|
||||
ScoreManager.Instance.Subject = Subject.Aluminoelectricexercise;
|
||||
SceneManager.LoadScene("shanxii");
|
||||
}
|
||||
public void Powersupplytests()
|
||||
{
|
||||
|
||||
ScoreManager.Instance.Subject = Subject.Aluminumelectricaltest;
|
||||
SceneManager.LoadScene("shanxii");
|
||||
|
||||
}
|
||||
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
|
|
|
@ -51,10 +51,7 @@ public class Operationprocess : MonoBehaviour
|
|||
/// 第三步签收步骤面板
|
||||
/// </summary>
|
||||
public Thethirdsteppanl thethirdsteppanl;
|
||||
/// <summary>
|
||||
/// 第一步判断是否得分
|
||||
/// </summary>
|
||||
private float firststep = 0f;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
Init();
|
||||
|
@ -73,7 +70,7 @@ public class Operationprocess : MonoBehaviour
|
|||
});
|
||||
report.onClick.AddListener(Reportoperation);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 判断违约类型方法
|
||||
|
@ -84,22 +81,43 @@ public class Operationprocess : MonoBehaviour
|
|||
|
||||
if (typeofbreach.options[typeofbreach.value].text.Length > 1)
|
||||
{
|
||||
if (typeofbreach.options[typeofbreach.value].text == "窃电")
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(12.5f);
|
||||
//firststep = ScoreManager.Instance.scores[0];
|
||||
|
||||
Practicescore1();
|
||||
}
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
Judgmentstep1();
|
||||
}
|
||||
|
||||
//ScoreManager.Instance.totalpoints.Add(firststep);
|
||||
operationpanel.gameObject.SetActive(false);
|
||||
thesecondsteppanl.SetActive(true);
|
||||
workordernumber.gameObject.SetActive(true);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤分
|
||||
/// </summary>
|
||||
private void Practicescore1()
|
||||
{
|
||||
ScoreManager.Instance.AddScore(12.5f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 考试步骤分
|
||||
/// </summary>
|
||||
private void Judgmentstep1()
|
||||
{
|
||||
if (typeofbreach.options[typeofbreach.value].text == "窃电")
|
||||
{
|
||||
ScoreManager.Instance.Honourscores[0] = float.Parse(ScoreManager.Instance.totalpoints[0]);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 完成每一步替换图片方法
|
||||
/// </summary>
|
||||
|
@ -125,6 +143,10 @@ public class Operationprocess : MonoBehaviour
|
|||
public void OnDropdownValueChanged(Dropdown dropdown)
|
||||
{
|
||||
strtext = dropdown.options[dropdown.value].text;
|
||||
if (dropdown.options[dropdown.value].text != "窃电")
|
||||
{
|
||||
Debug.Log("进来了");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 把图片变色还原
|
||||
|
@ -136,13 +158,5 @@ public class Operationprocess : MonoBehaviour
|
|||
chartletlist[i].sprite = null;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 还原页面的变化
|
||||
/// </summary>
|
||||
public void Getrestore1()
|
||||
{
|
||||
typeofbreach.value = 3;
|
||||
fieldaddress.text = null;
|
||||
reportinformation.text = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -50,13 +50,18 @@ public class ReadLoginInfo : MonoBehaviour
|
|||
{
|
||||
if (datas[1]=="0")
|
||||
{
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
mainselect.practicebutton.onClick.Invoke();
|
||||
}
|
||||
else if (datas[1] == "1")
|
||||
{
|
||||
PlayerPrefs.SetString("id", datas[2]);
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
PlayerPrefs.SetString("Time", datas[6]);
|
||||
PlayerPrefs.SetString("calssID", datas[7]);
|
||||
mainselect.examinationbutton.onClick.Invoke();
|
||||
}
|
||||
}
|
||||
|
@ -64,15 +69,41 @@ public class ReadLoginInfo : MonoBehaviour
|
|||
{
|
||||
if (datas[1] == "0")
|
||||
{
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
mainselect.Powersupplytest.onClick.Invoke();
|
||||
mainselect.Electricchargeexercise.onClick.Invoke();
|
||||
}
|
||||
else if (datas[1] == "1")
|
||||
{
|
||||
Debug.Log(int.Parse(datas[2]));
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
PlayerPrefs.SetString("Time", datas[6]);
|
||||
PlayerPrefs.SetString("calssID", datas[7]);
|
||||
mainselect.Electricityfeetest.onClick.Invoke();
|
||||
}
|
||||
}
|
||||
else if (datas[0] == "gdht")
|
||||
{
|
||||
if (datas[1] == "0")
|
||||
{
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
mainselect.Powersupplyexercise.onClick.Invoke();
|
||||
}
|
||||
else if (datas[1] == "1")
|
||||
{
|
||||
PlayerPrefs.SetInt("Id", int.Parse(datas[2]));
|
||||
PlayerPrefs.SetString("userId", datas[3]);
|
||||
PlayerPrefs.SetString("Name", datas[4]);
|
||||
PlayerPrefs.SetString("Time", datas[6]);
|
||||
PlayerPrefs.SetString("calssID", datas[7]);
|
||||
mainselect.Powersupplytest.onClick.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using UnityEngine;
|
||||
using LitJson;
|
||||
using static InterfaceManager;
|
||||
using System;
|
||||
/// <summary>
|
||||
/// 判断考试还是练习
|
||||
/// </summary>
|
||||
|
@ -34,7 +35,6 @@ public class ScoreManager : MonoSingleton<ScoreManager>
|
|||
get { return electriccharge; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用来判断是考试还是练习
|
||||
/// </summary>
|
||||
|
@ -51,50 +51,156 @@ public class ScoreManager : MonoSingleton<ScoreManager>
|
|||
public MainRoot mainRoot = new MainRoot();
|
||||
public List<ExamContent> examContents = new List<ExamContent>();
|
||||
/// <summary>
|
||||
/// 获取试卷每题得分数
|
||||
/// 获取接口考试步骤分
|
||||
/// </summary>
|
||||
public List<float> scores = new List<float>();
|
||||
public List<string> totalpoints = new List<string>();
|
||||
/// <summary>
|
||||
/// 判断媒体获得得分数
|
||||
/// </summary>
|
||||
public List<float> totalpoints = new List<float>();
|
||||
/// <summary>
|
||||
/// 考点
|
||||
/// 获取接口考试标题
|
||||
/// </summary>
|
||||
public List<string> testcenters = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// 获取接口考试详情
|
||||
/// </summary>
|
||||
public List<string> Performancetestsites = new List<string>();
|
||||
/// <summary>
|
||||
/// 履约考试步骤分
|
||||
/// </summary>
|
||||
public List<float> Honourscores = new List<float>();
|
||||
/// <summary>
|
||||
/// 电费考试分数
|
||||
/// </summary>
|
||||
public List<float> Electricitytestscores = new List<float>();
|
||||
/// <summary>
|
||||
/// 供电考试合同
|
||||
/// </summary>
|
||||
public List<float> Powersupplytests = new List<float>();
|
||||
private void Awake()
|
||||
{
|
||||
|
||||
}
|
||||
private void Start()
|
||||
{
|
||||
if (ScoreManager.Instance.Subject==Subject.Performanceexamination)
|
||||
switch (ScoreManager.Instance.Subject)
|
||||
{
|
||||
string str = PlayerPrefs.GetString("id");
|
||||
if (str.Length > 0)
|
||||
{
|
||||
string url = Performancecontract;
|
||||
url += "id=";
|
||||
url += str;
|
||||
Debug.Log(url);
|
||||
StartCoroutine(Getstring(url, data =>
|
||||
{
|
||||
mainRoot = JsonUtility.FromJson<MainRoot>(data);
|
||||
// 解析 examContent 字段,这次使用ExamContentWrapper
|
||||
ExamContentWrapper examContentWrapper = JsonUtility.FromJson<ExamContentWrapper>("{\"examContent\":" + mainRoot.data.examContent + "}");
|
||||
for (int i = 0; i < examContentWrapper.examContent.Length; i++)
|
||||
{
|
||||
examContents.Add(examContentWrapper.examContent[i]);
|
||||
}
|
||||
}));
|
||||
}
|
||||
//for (int i = 0; i < examContents.Count; i++)
|
||||
//{
|
||||
|
||||
//}
|
||||
case Subject.Performanceexercise:
|
||||
break;
|
||||
case Subject.Performanceexamination:
|
||||
Performanceexamination1();
|
||||
break;
|
||||
case Subject.Electricchargeexercise:
|
||||
break;
|
||||
case Subject.Electricityfeetest:
|
||||
Performanceexamination2();
|
||||
break;
|
||||
case Subject.Aluminoelectricexercise:
|
||||
break;
|
||||
case Subject.Aluminumelectricaltest:
|
||||
Performanceexamination3();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 供电合同考试接口
|
||||
/// </summary>
|
||||
private void Performanceexamination3()
|
||||
{
|
||||
string str = PlayerPrefs.GetInt("Id").ToString();
|
||||
Debug.Log(str);
|
||||
if (str.Length > 0)
|
||||
{
|
||||
string url = Performancecontract;
|
||||
url += "id=";
|
||||
url += str;
|
||||
StartCoroutine(Getstring(url, data =>
|
||||
{
|
||||
mainRoot = JsonUtility.FromJson<MainRoot>(data);
|
||||
ExamContentWrapper examContentWrapper = JsonUtility.FromJson<ExamContentWrapper>("{\"examContent\":" + mainRoot.data.examContent + "}");
|
||||
for (int i = 0; i < examContentWrapper.examContent.Length; i++)
|
||||
{
|
||||
examContents.Add(examContentWrapper.examContent[i]);
|
||||
}
|
||||
Debug.Log(data);
|
||||
if (examContents.Count > 0)
|
||||
{
|
||||
Performancecontent(examContents);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电费核算考试接口
|
||||
/// </summary>
|
||||
private void Performanceexamination2()
|
||||
{
|
||||
string str = PlayerPrefs.GetInt("Id").ToString();
|
||||
Debug.Log(str);
|
||||
if (str.Length > 0)
|
||||
{
|
||||
string url = Performancecontract;
|
||||
url += "id=";
|
||||
url += str;
|
||||
StartCoroutine(Getstring(url, data =>
|
||||
{
|
||||
mainRoot = JsonUtility.FromJson<MainRoot>(data);
|
||||
ExamContentWrapper examContentWrapper = JsonUtility.FromJson<ExamContentWrapper>("{\"examContent\":" + mainRoot.data.examContent + "}");
|
||||
for (int i = 0; i < examContentWrapper.examContent.Length; i++)
|
||||
{
|
||||
examContents.Add(examContentWrapper.examContent[i]);
|
||||
}
|
||||
Debug.Log(data);
|
||||
if (examContents.Count > 0)
|
||||
{
|
||||
Performancecontent(examContents);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 履约考试请求接口
|
||||
/// </summary>
|
||||
private void Performanceexamination1()
|
||||
{
|
||||
string str = PlayerPrefs.GetInt("Id").ToString();
|
||||
if (str.Length > 0)
|
||||
{
|
||||
string url = Performancecontract;
|
||||
url += "id=";
|
||||
url += str;
|
||||
Debug.Log(url);
|
||||
StartCoroutine(Getstring(url, data =>
|
||||
{
|
||||
mainRoot = JsonUtility.FromJson<MainRoot>(data);
|
||||
ExamContentWrapper examContentWrapper = JsonUtility.FromJson<ExamContentWrapper>("{\"examContent\":" + mainRoot.data.examContent + "}");
|
||||
for (int i = 0; i < examContentWrapper.examContent.Length; i++)
|
||||
{
|
||||
examContents.Add(examContentWrapper.examContent[i]);
|
||||
}
|
||||
Debug.Log(data);
|
||||
if (examContents.Count > 0)
|
||||
{
|
||||
Performancecontent(examContents);
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 履约试卷接收
|
||||
/// </summary>
|
||||
private void Performancecontent(List<ExamContent> examContents)
|
||||
{
|
||||
for (int i = 0; i < examContents.Count; i++)
|
||||
{
|
||||
testcenters.Add(examContents[i].step);
|
||||
Performancetestsites.Add(examContents[i].point);
|
||||
totalpoints.Add(examContents[i].score);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 覆约合同加分
|
||||
/// </summary>
|
||||
|
|
|
@ -135,12 +135,7 @@ public class Signforpanl : MonoBehaviour
|
|||
/// 选择人员判分
|
||||
/// </summary>
|
||||
public Toggle personneltoggle;
|
||||
/// <summary>
|
||||
/// 第二步步骤得分
|
||||
/// </summary>
|
||||
private float thesecondstep1 = 0f;
|
||||
private float thesecondstep2 = 0f;
|
||||
private float thesecondstep3 = 0f;
|
||||
|
||||
void Start()
|
||||
{
|
||||
init();
|
||||
|
@ -301,25 +296,64 @@ public class Signforpanl : MonoBehaviour
|
|||
public void Stepbystep()
|
||||
{
|
||||
Debug.Log("第二步得分");
|
||||
if (revealtoggle2.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);
|
||||
//thesecondstep1 = ScoreManager.Instance.scores[1] * 0.2f;
|
||||
Practicescore2();
|
||||
}
|
||||
if (ispbool)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
//thesecondstep2 = ScoreManager.Instance.scores[1] * 0.2f;
|
||||
Judgmentstep2();//判断考试步骤分
|
||||
}
|
||||
if (personneltoggle.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(9);
|
||||
//thesecondstep3 = ScoreManager.Instance.scores[1] * 0.6f;
|
||||
}
|
||||
//float value = thesecondstep1 + thesecondstep2 + thesecondstep3;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);//第二步最终得分
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
controlspanl1.gameObject.SetActive(false);
|
||||
thethirdsteppanl.gameObject.SetActive(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore2()
|
||||
{
|
||||
if (revealtoggle2.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);
|
||||
}
|
||||
if (ispbool)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);
|
||||
}
|
||||
if (personneltoggle.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(7.5f);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep2()
|
||||
{
|
||||
float score = 0;
|
||||
string str;
|
||||
if (revealtoggle2.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[1]) * 0.2f);
|
||||
}
|
||||
if (ispbool)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[1]) * 0.2f);
|
||||
}
|
||||
if (personneltoggle.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[1]) * 0.6f);
|
||||
}
|
||||
if ((score - Mathf.Floor(score)) < 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[1] = float.Parse(str);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,12 +79,7 @@ public class Stepeightpanl : MonoBehaviour
|
|||
/// 归档按钮判断
|
||||
/// </summary>
|
||||
private bool archivsisp=true;
|
||||
/// <summary>
|
||||
/// 第八步操作
|
||||
/// </summary>
|
||||
private float stepeight1;
|
||||
private float stepeight2;
|
||||
private float stepeight3;
|
||||
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
@ -120,20 +115,16 @@ public class Stepeightpanl : MonoBehaviour
|
|||
if (archivsisp)
|
||||
{
|
||||
Debug.Log("第八步判分");
|
||||
if (serialtoggle8.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//是否勾选
|
||||
//stepeight1 = ScoreManager.Instance.scores[7] * 0.2f;
|
||||
Practicescore8();
|
||||
}
|
||||
if (signforisp)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//签收
|
||||
//stepeight2 = ScoreManager.Instance.scores[7] * 0.2f;
|
||||
Judgmentstep8();
|
||||
}
|
||||
ScoreManager.Instance.AddScore(9);
|
||||
//stepeight3 = ScoreManager.Instance.scores[7] * 0.6f;
|
||||
//float value = stepeight1 + stepeight2 + stepeight3;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
Debug.Log(ScoreManager.Instance.Score);
|
||||
archivsisp = false;
|
||||
}
|
||||
|
@ -144,6 +135,49 @@ public class Stepeightpanl : MonoBehaviour
|
|||
});
|
||||
Tipspanl();
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore8()
|
||||
{
|
||||
if (serialtoggle8.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//是否勾选
|
||||
}
|
||||
if (signforisp)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//签收
|
||||
}
|
||||
ScoreManager.Instance.AddScore(7.5f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep8()
|
||||
{
|
||||
float score = 0f;
|
||||
string str;
|
||||
if (serialtoggle8.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[7]) * 0.2f);
|
||||
}
|
||||
if (signforisp)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[7]) * 0.2f);
|
||||
}
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[7]) * 0.6f);
|
||||
if ((score - Mathf.Floor(score)) < 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[7] = float.Parse(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提示是否交卷页面
|
||||
/// </summary>
|
||||
|
|
|
@ -187,15 +187,7 @@ public class Stepfourpanl : MonoBehaviour
|
|||
/// 发送按钮
|
||||
/// </summary>
|
||||
public Button sendbutton6;
|
||||
/// <summary>
|
||||
/// 第四步判分
|
||||
/// </summary>
|
||||
private float stepfour1 = 0f;
|
||||
private float stepfour2 = 0f;
|
||||
private float stepfour3 = 0f;
|
||||
private float stepfour4 = 0f;
|
||||
private float stepfour5 = 0f;
|
||||
private float stepfour6 = 0f;
|
||||
|
||||
void Start()
|
||||
{
|
||||
workorderbutton4.onClick.AddListener(() =>
|
||||
|
@ -313,42 +305,90 @@ public class Stepfourpanl : MonoBehaviour
|
|||
sendbutton6.onClick.AddListener(() =>
|
||||
{
|
||||
Debug.Log("第四步判分");
|
||||
if (selecttoggle.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//是否勾选
|
||||
//stepfour1 = ScoreManager.Instance.scores[3] * 0.2f;
|
||||
Practicescore4();
|
||||
}
|
||||
if (signisp)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//签收
|
||||
//stepfour2 = ScoreManager.Instance.scores[3] * 0.2f;
|
||||
Judgmentstep4();
|
||||
}
|
||||
if (dropdownprice.captionText.text == "价格表")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2f);//判断是否选择价格表
|
||||
//stepfour3 = ScoreManager.Instance.scores[3] * 0.2f;
|
||||
}
|
||||
if (selecttoggle3.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
//stepfour4 = ScoreManager.Instance.scores[3] * 0.1f;
|
||||
}
|
||||
if (checktoggle4.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
//stepfour5 = ScoreManager.Instance.scores[3] * 0.1f;
|
||||
}
|
||||
if (electricityinput.text == "3")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(3);//判断是否输入三倍
|
||||
//stepfour6 = ScoreManager.Instance.scores[3] * 0.2f;
|
||||
}
|
||||
//float value = stepfour1 + stepfour2 + stepfour3 + stepfour4 + stepfour5 + stepfour6;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
stepfourpanl11.gameObject.SetActive(false);
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore4()
|
||||
{
|
||||
if (selecttoggle.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//是否勾选
|
||||
}
|
||||
if (signisp)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//签收
|
||||
}
|
||||
if (dropdownprice.captionText.text == "价格表")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2f);//判断是否选择价格表
|
||||
}
|
||||
if (selecttoggle3.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
}
|
||||
if (checktoggle4.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
}
|
||||
if (electricityinput.text == "3")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//判断是否输入三倍
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep4()
|
||||
{
|
||||
float score = 0f;
|
||||
string str;
|
||||
if(selecttoggle.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.2f);
|
||||
}
|
||||
if (signisp)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.16f);
|
||||
}
|
||||
if (dropdownprice.captionText.text == "价格表")
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.16f);
|
||||
}
|
||||
if (selecttoggle3.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.16f);
|
||||
}
|
||||
if (checktoggle4.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.16f);
|
||||
}
|
||||
if (electricityinput.text == "3")
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[3]) * 0.16f);
|
||||
}
|
||||
if ((score - Mathf.Floor(score)) < 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[3] = float.Parse(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 消失保存图片
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -69,17 +70,12 @@ public class Stepsevenpanl : MonoBehaviour
|
|||
/// ·¢Ðа´Å¥
|
||||
/// </summary>
|
||||
public Button releasebutton;
|
||||
/// <summary>
|
||||
/// µÚÆß²½²Ù×÷
|
||||
/// </summary>
|
||||
private float stepseven1;
|
||||
private float stepseven2;
|
||||
private float stepseven3;
|
||||
|
||||
void Start()
|
||||
{
|
||||
waittobedonebutton7.onClick.AddListener(() =>
|
||||
{
|
||||
|
||||
|
||||
stepsevenpanl1.gameObject.SetActive(false);
|
||||
stepsevenpanl2.gameObject.SetActive(true);
|
||||
});
|
||||
|
@ -106,31 +102,71 @@ public class Stepsevenpanl : MonoBehaviour
|
|||
releasebutton.onClick.AddListener(() =>
|
||||
{
|
||||
Debug.Log("µÚÆß²½µÃ·Ö");
|
||||
if (serialtoggle7.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//
|
||||
//stepseven1 = ScoreManager.Instance.scores[6] * 0.2f;
|
||||
Practicescore7();
|
||||
}
|
||||
if (singnisp)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//Ç©ÊÕ
|
||||
//stepseven2 = ScoreManager.Instance.scores[6] * 0.2f;
|
||||
Judgmentstep7();
|
||||
}
|
||||
if (serialnumbertoggle7.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(9);
|
||||
//stepseven3 = ScoreManager.Instance.scores[6] * 0.6f;
|
||||
}
|
||||
//float value = stepseven1 + stepseven2 + stepseven3;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
stepsevenpanl4.gameObject.SetActive(false);
|
||||
});
|
||||
serialnumbertoggle7.onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore7()
|
||||
{
|
||||
if (serialtoggle7.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);
|
||||
}
|
||||
if (singnisp)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);
|
||||
}
|
||||
if (serialnumbertoggle7.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(7.5f);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep7()
|
||||
{
|
||||
float score = 0f;
|
||||
string str;
|
||||
if (serialtoggle7.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[6]) * 0.2f);
|
||||
}
|
||||
if (singnisp)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[6]) * 0.2f);
|
||||
}
|
||||
if (serialnumbertoggle7.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[6]) * 0.6f);
|
||||
}
|
||||
if ((score - Mathf.Floor(score)) < 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[6] = float.Parse(str);
|
||||
}
|
||||
|
||||
public void Getpicture2()
|
||||
{
|
||||
signforimage7.gameObject.SetActive(false);
|
||||
|
@ -142,12 +178,12 @@ public class Stepsevenpanl : MonoBehaviour
|
|||
{
|
||||
if (toggle.isOn)
|
||||
{
|
||||
|
||||
|
||||
serialimage7.gameObject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
serialtoggle7.gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,12 +74,7 @@ public class Stepsixpanl : MonoBehaviour
|
|||
/// 发送按钮
|
||||
/// </summary>
|
||||
public Button sendbutton6;
|
||||
/// <summary>
|
||||
/// 第六步判分
|
||||
/// </summary>
|
||||
private float stepsix1;
|
||||
private float stepsix2;
|
||||
private float stepsix3;
|
||||
|
||||
void Start()
|
||||
{
|
||||
waittobebutton6.onClick.AddListener(() =>
|
||||
|
@ -111,24 +106,16 @@ public class Stepsixpanl : MonoBehaviour
|
|||
sendbutton6.onClick.AddListener(() =>
|
||||
{
|
||||
Debug.Log("第六步得分");
|
||||
if (serialtoggle6.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//是否勾选
|
||||
//stepsix1 = ScoreManager.Instance.scores[5] * 0.2f;
|
||||
Practicescore6(); ;
|
||||
}
|
||||
if (yesisp)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2f);//签收
|
||||
//stepsix2 = ScoreManager.Instance.scores[5] * 0.2f;
|
||||
Judgmentstep6();
|
||||
}
|
||||
if (passtoggle6.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(9);//是否通过
|
||||
//stepsix3 = ScoreManager.Instance.scores[5] * 0.6f;
|
||||
}
|
||||
//float value = stepsix1 + stepsix2 + stepsix3;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
stepsixpanl4.gameObject.SetActive(false);
|
||||
});
|
||||
passtoggle6.onValueChanged.AddListener((ison) =>
|
||||
|
@ -136,6 +123,55 @@ public class Stepsixpanl : MonoBehaviour
|
|||
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore6()
|
||||
{
|
||||
if (serialtoggle6.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//是否勾选
|
||||
|
||||
}
|
||||
if (yesisp)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//签收
|
||||
|
||||
}
|
||||
if (passtoggle6.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(7.5f);//是否通过
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void Judgmentstep6()
|
||||
{
|
||||
float score = 0f;
|
||||
string str;
|
||||
if (serialtoggle6.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[5]) * 0.2f);
|
||||
}
|
||||
if (yesisp)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[5]) * 0.2f);
|
||||
}
|
||||
if (passtoggle6.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[5]) * 0.6f);
|
||||
}
|
||||
if ((score - Mathf.Floor(score)) < 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[5] = float.Parse(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 图片高亮
|
||||
/// </summary>
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Diagnostics.Contracts;
|
||||
using LitJson;
|
||||
using System.IO;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.UI;
|
||||
using UnityEngine.XR;
|
||||
using static InterfaceManager;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.Contracts;
|
||||
|
||||
|
||||
public class Submit : MonoBehaviour
|
||||
|
@ -97,10 +99,18 @@ public class Submit : MonoBehaviour
|
|||
/// </summary>
|
||||
public GameObject retreatyobj;
|
||||
/// <summary>
|
||||
/// 供电预设体
|
||||
/// </summary>
|
||||
private GameObject powersupplyobj;
|
||||
/// <summary>
|
||||
/// 电费计算预设体
|
||||
/// </summary>
|
||||
public GameObject electricchargeobj;
|
||||
/// <summary>
|
||||
/// 供电考试预设体
|
||||
/// </summary>
|
||||
public GameObject Powersupplyone;
|
||||
/// <summary>
|
||||
/// 覆约电费供电页面练习预制体生成位置
|
||||
/// </summary>
|
||||
public RectTransform retreatypanl;
|
||||
|
@ -109,8 +119,10 @@ public class Submit : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 接收覆约合同的预设体
|
||||
/// </summary>
|
||||
public GameObject retreatpreform;
|
||||
public GameObject electricchargeprrform;
|
||||
public GameObject retreatpreform;//履约合同练习考试通用
|
||||
private GameObject powersuppreform;//供电练习
|
||||
public GameObject electricchargeprrform;//电费核算练习考试通用
|
||||
public GameObject Powersupplys;
|
||||
/// <summary>
|
||||
/// 初始化每个考试toggle显示按钮
|
||||
/// </summary>
|
||||
|
@ -132,9 +144,11 @@ public class Submit : MonoBehaviour
|
|||
/// </summary>
|
||||
public GameObject displaychargepanl;
|
||||
/// <summary>
|
||||
/// 关闭展示按钮
|
||||
/// 关闭展示按钮和导出
|
||||
/// </summary>
|
||||
public Button cancelbutton;
|
||||
public Button derivebutton;
|
||||
public InputField pathsinput;
|
||||
/// <summary>
|
||||
/// 查看录屏结束按钮
|
||||
/// </summary>
|
||||
|
@ -144,8 +158,15 @@ public class Submit : MonoBehaviour
|
|||
/// 考试用时文本
|
||||
/// </summary>
|
||||
public Text testduration;
|
||||
private float totalTime = 5400f; // 总时间,单位为秒
|
||||
private float totalTime; // 总时间,单位为秒
|
||||
private float timeRemaining; // 剩余时间
|
||||
/// <summary>
|
||||
/// 获取当前时间
|
||||
/// </summary>
|
||||
private string Times
|
||||
{
|
||||
get { return System.DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss"); }
|
||||
}
|
||||
private void Awake()
|
||||
{
|
||||
Initialize();//初始化
|
||||
|
@ -163,10 +184,19 @@ public class Submit : MonoBehaviour
|
|||
case Subject.Electricityfeetest:
|
||||
Electricityexaminationpaper();//电费考试
|
||||
break;
|
||||
case Subject.Aluminoelectricexercise:
|
||||
Powersupplyexercise();//供电练习
|
||||
break;
|
||||
case Subject.Aluminumelectricaltest:
|
||||
Powersupplytest1();//供电考试
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 初始化场景
|
||||
/// </summary>
|
||||
|
@ -177,9 +207,12 @@ public class Submit : MonoBehaviour
|
|||
nametext.text = PlayerPrefs.GetString("Name");
|
||||
|
||||
retreatyobj = Resources.Load<GameObject>("UIpanel/practice1");
|
||||
powersupplyobj = Resources.Load<GameObject>("UIpanel/practicepanl2");
|
||||
electricchargeobj = Resources.Load<GameObject>("UIpanel/practicepanl3");
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination || ScoreManager.Instance.Subject == Subject.Electricityfeetest)
|
||||
Powersupplyone = Resources.Load<GameObject>("UIpanel/Powersupplytest");
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination || ScoreManager.Instance.Subject == Subject.Electricityfeetest || ScoreManager.Instance.Subject == Subject.Aluminumelectricaltest)
|
||||
{
|
||||
totalTime = (float.Parse(PlayerPrefs.GetString("Time"))*60);
|
||||
timeRemaining = totalTime;
|
||||
Updatetiem();
|
||||
}
|
||||
|
@ -199,7 +232,7 @@ public class Submit : MonoBehaviour
|
|||
|
||||
submitbutton.onClick.AddListener(() =>
|
||||
{
|
||||
|
||||
|
||||
switch (ScoreManager.Instance.Subject)
|
||||
{
|
||||
case Subject.Performanceexercise:
|
||||
|
@ -223,7 +256,7 @@ public class Submit : MonoBehaviour
|
|||
});
|
||||
backbutton.onClick.AddListener(() =>
|
||||
{
|
||||
|
||||
|
||||
switch (ScoreManager.Instance.Subject)
|
||||
{
|
||||
case Subject.Performanceexercise:
|
||||
|
@ -291,6 +324,11 @@ public class Submit : MonoBehaviour
|
|||
cancelbutton.onClick.AddListener(() =>
|
||||
{
|
||||
displaychargepanl.SetActive(false);
|
||||
pathsinput.text = "";
|
||||
});
|
||||
derivebutton.onClick.AddListener(() =>
|
||||
{
|
||||
StartCoroutine(CaptureScreenshot());//导出发票
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
|
@ -308,31 +346,100 @@ public class Submit : MonoBehaviour
|
|||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 导出发票
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private IEnumerator CaptureScreenshot()
|
||||
{
|
||||
|
||||
yield return new WaitForEndOfFrame();
|
||||
// 创建一个新的Texture2D对象,尺寸为屏幕分辨率
|
||||
Texture2D screenshot = new Texture2D(1700, 927, TextureFormat.RGB24, false);
|
||||
|
||||
// 从屏幕读取像素数据到Texture2D对象中
|
||||
screenshot.ReadPixels(new Rect(112, 16, 1698, 924), 0, 0);
|
||||
screenshot.Apply();
|
||||
string path = Application.persistentDataPath + "/发票" + Times + ".png";
|
||||
byte[] bytes = screenshot.EncodeToPNG();
|
||||
File.WriteAllBytes(path, bytes);
|
||||
pathsinput.text = path;
|
||||
}
|
||||
/// <summary>
|
||||
/// 电费核算交卷提交
|
||||
/// </summary>
|
||||
public void Handinanexaminationpaper2()
|
||||
{
|
||||
|
||||
Electricitychargeaccounting.Instance.Electricitytestscore();
|
||||
electricchargeprrform = GameObject.Find("practicepanl3(Clone)");
|
||||
Destroy(electricchargeprrform);
|
||||
submissionpromptpanl.SetActive(false);
|
||||
onvolumebutton.gameObject.SetActive(false);
|
||||
testduration.gameObject.SetActive(false);
|
||||
isCooldown = true;
|
||||
Debug.Log(ScoreManager.Instance.Electriccharge);
|
||||
Electricitybillaccountingsubmission();//电费核算交卷考试
|
||||
examinepanl.SetActive(true);
|
||||
}
|
||||
|
||||
private void Electricitybillaccountingsubmission()
|
||||
{
|
||||
Performancetestscore performancetestscore = new Performancetestscore();
|
||||
string url = Submittheperformanceexam;
|
||||
performancetestscore.userName = PlayerPrefs.GetString("Name");
|
||||
performancetestscore.userId = PlayerPrefs.GetString("userId");
|
||||
performancetestscore.examId = PlayerPrefs.GetInt("Id");
|
||||
for (int i = 0; i < ScoreManager.Instance.Electricitytestscores.Count; i++)
|
||||
{
|
||||
StepListItem stepListItem = new StepListItem();
|
||||
stepListItem.stepName = ScoreManager.Instance.testcenters[i];
|
||||
stepListItem.testPoint = ScoreManager.Instance.Performancetestsites[i];
|
||||
stepListItem.score = ScoreManager.Instance.Electricitytestscores[i];
|
||||
Debug.Log(stepListItem.score);
|
||||
performancetestscore.stepList.Add(stepListItem);
|
||||
}
|
||||
string dataitem = JsonUtility.ToJson(performancetestscore);
|
||||
Debug.Log(dataitem);
|
||||
StartCoroutine(PoststringByRaw(url, dataitem));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 供电合同考试提交
|
||||
/// </summary>
|
||||
public void Handinanexaminationpaper3()
|
||||
{
|
||||
|
||||
Powersupplytest.Instance.Powersupplyhandover();
|
||||
Powersupplys = GameObject.Find("Powersupplytest(Clone)");
|
||||
Destroy(Powersupplys);
|
||||
submissionpromptpanl.SetActive(false);
|
||||
onvolumebutton.gameObject.SetActive(false);
|
||||
testduration.gameObject.SetActive(false);
|
||||
isCooldown = true;
|
||||
Powersupplyuploadinterface();//供电提交试卷
|
||||
examinepanl.SetActive(true);
|
||||
}
|
||||
/// <summary>
|
||||
/// 履约合同考试提交
|
||||
/// 供电考试提交试卷
|
||||
/// </summary>
|
||||
float value;
|
||||
private void Powersupplyuploadinterface()
|
||||
{
|
||||
Performancetestscore performancetestscore = new Performancetestscore();
|
||||
string url = Submittheperformanceexam;
|
||||
performancetestscore.userName = PlayerPrefs.GetString("Name");
|
||||
performancetestscore.userId = PlayerPrefs.GetString("userId");
|
||||
performancetestscore.examId = PlayerPrefs.GetInt("Id");
|
||||
for (int i = 0; i < ScoreManager.Instance.Powersupplytests.Count; i++)
|
||||
{
|
||||
StepListItem stepListItem = new StepListItem();
|
||||
stepListItem.stepName = ScoreManager.Instance.testcenters[i];
|
||||
stepListItem.testPoint = ScoreManager.Instance.Performancetestsites[i];
|
||||
stepListItem.score = ScoreManager.Instance.Powersupplytests[i];
|
||||
Debug.Log(stepListItem.score);
|
||||
performancetestscore.stepList.Add(stepListItem);
|
||||
}
|
||||
string dataitem = JsonUtility.ToJson(performancetestscore);
|
||||
Debug.Log(dataitem);
|
||||
StartCoroutine(PoststringByRaw(url, dataitem));
|
||||
}
|
||||
|
||||
public void Handinanexaminationpaper1()
|
||||
{
|
||||
retreatpreform = GameObject.Find("practice1(Clone)");
|
||||
|
@ -341,14 +448,30 @@ public class Submit : MonoBehaviour
|
|||
onvolumebutton.gameObject.SetActive(false);
|
||||
testduration.gameObject.SetActive(false);
|
||||
isCooldown = true;
|
||||
for (int i = 0; i < ScoreManager.Instance.totalpoints.Count; i++)
|
||||
{
|
||||
value += ScoreManager.Instance.totalpoints[i];
|
||||
Debug.Log(ScoreManager.Instance.totalpoints[i]);
|
||||
}
|
||||
Debug.Log(value);
|
||||
Uploadscore();//上传履约考试试卷
|
||||
examinepanl.SetActive(true);
|
||||
}
|
||||
|
||||
private void Uploadscore()
|
||||
{
|
||||
Performancetestscore performancetestscore = new Performancetestscore();
|
||||
string url = Submittheperformanceexam;
|
||||
performancetestscore.userName = PlayerPrefs.GetString("Name");
|
||||
performancetestscore.userId = PlayerPrefs.GetString("userId");
|
||||
performancetestscore.examId = PlayerPrefs.GetInt("Id");
|
||||
for (int i = 0; i < ScoreManager.Instance.Honourscores.Count; i++)
|
||||
{
|
||||
StepListItem stepListItem = new StepListItem();
|
||||
stepListItem.stepName = ScoreManager.Instance.testcenters[i];
|
||||
stepListItem.testPoint = ScoreManager.Instance.Performancetestsites[i];
|
||||
stepListItem.score = ScoreManager.Instance.Honourscores[i];
|
||||
Debug.Log(stepListItem.score);
|
||||
performancetestscore.stepList.Add(stepListItem);
|
||||
}
|
||||
string dataitem = JsonUtility.ToJson(performancetestscore);
|
||||
Debug.Log(dataitem);
|
||||
StartCoroutine(PoststringByRaw(url, dataitem));
|
||||
}
|
||||
/// <summary>
|
||||
/// 履约合同返回初始化页面
|
||||
/// </summary>
|
||||
|
@ -391,10 +514,10 @@ public class Submit : MonoBehaviour
|
|||
{
|
||||
retreatpreform = GameObject.Find("practice1(Clone)");
|
||||
Destroy(retreatpreform);
|
||||
StopButton.gameObject.SetActive(true);
|
||||
answerbutton.gameObject.SetActive(false);
|
||||
submitbutton.gameObject.SetActive(false);
|
||||
marktext.text = ScoreManager.Instance.Score.ToString();
|
||||
StopButton.gameObject.SetActive(true);
|
||||
practicepanl.SetActive(true);
|
||||
}
|
||||
/// <summary>
|
||||
|
@ -415,7 +538,7 @@ public class Submit : MonoBehaviour
|
|||
submitbutton.gameObject.SetActive(false);
|
||||
electricchargeprrform = GameObject.Find("practicepanl3(Clone)");
|
||||
Destroy(electricchargeprrform);
|
||||
//Electricitychargeaccounting.Instance.Calculatescore();
|
||||
|
||||
Electricitychargeaccounting.Instance.Calculatescore2();
|
||||
StopButton.gameObject.SetActive(false);
|
||||
Tipsinput.text = "";
|
||||
|
@ -455,8 +578,10 @@ public class Submit : MonoBehaviour
|
|||
retreatypanl.gameObject.SetActive(true);
|
||||
powersupplypanl.gameObject.SetActive(false);
|
||||
electricchargepanl.gameObject.SetActive(false);
|
||||
Instantiate(electricchargeobj, electricchargepanl);
|
||||
Instantiate(retreatyobj, retreatypanl);
|
||||
Instantiate(electricchargeobj, electricchargepanl);
|
||||
powersuppreform = Instantiate(powersupplyobj, powersupplypanl);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 电费练习页面初始化
|
||||
|
@ -466,15 +591,15 @@ public class Submit : MonoBehaviour
|
|||
|
||||
electricitychargeaccounting.isOn = true;
|
||||
|
||||
powersupplycontract.gameObject.SetActive(false);
|
||||
submitbutton.gameObject.SetActive(true);
|
||||
retreatypanl.gameObject.SetActive(false);
|
||||
|
||||
onvolumebutton.gameObject.SetActive(false);
|
||||
retreatypanl.gameObject.SetActive(false);
|
||||
powersupplypanl.gameObject.SetActive(false);
|
||||
electricchargepanl.gameObject.SetActive(true);
|
||||
Instantiate(electricchargeobj, electricchargepanl);
|
||||
Instantiate(retreatyobj, retreatypanl);
|
||||
powersuppreform = Instantiate(powersupplyobj, powersupplypanl);
|
||||
}
|
||||
/// <summary>
|
||||
/// 电费核算考试页面初始化
|
||||
|
@ -492,6 +617,39 @@ public class Submit : MonoBehaviour
|
|||
electricchargepanl.gameObject.SetActive(true);
|
||||
Instantiate(electricchargeobj, electricchargepanl);
|
||||
}
|
||||
/// <summary>
|
||||
/// 供电合同练习初始化页面
|
||||
/// </summary>
|
||||
private void Powersupplyexercise()
|
||||
{
|
||||
powersupplycontract.isOn = true;
|
||||
submitbutton.gameObject.SetActive(false);
|
||||
onvolumebutton.gameObject.SetActive(false);
|
||||
retreatypanl.gameObject.SetActive(false);
|
||||
electricchargepanl.gameObject.SetActive(false);
|
||||
powersupplypanl.gameObject.SetActive(true);
|
||||
Instantiate(electricchargeobj, electricchargepanl);
|
||||
Instantiate(retreatyobj, retreatypanl);
|
||||
powersuppreform = Instantiate(powersupplyobj, powersupplypanl);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 供电合同考试初始化页面
|
||||
/// </summary>
|
||||
private void Powersupplytest1()
|
||||
{
|
||||
powersupplycontract.transform.position = pos;
|
||||
powersupplycontract.isOn = true;
|
||||
submitbutton.gameObject.SetActive(false);
|
||||
retreatypanl.gameObject.SetActive(false);
|
||||
electricchargepanl.gameObject.SetActive(false);
|
||||
electricitychargeaccounting.gameObject.SetActive(false);
|
||||
contract.gameObject.SetActive(false);
|
||||
powersupplypanl.gameObject.SetActive(true);
|
||||
onvolumebutton.gameObject.SetActive(true);
|
||||
Instantiate(Powersupplyone, powersupplypanl);
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
//十秒后自动退出程序
|
||||
|
@ -512,7 +670,7 @@ public class Submit : MonoBehaviour
|
|||
#endif
|
||||
}
|
||||
}
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination || ScoreManager.Instance.Subject == Subject.Electricityfeetest)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination || ScoreManager.Instance.Subject == Subject.Electricityfeetest || ScoreManager.Instance.Subject == Subject.Aluminumelectricaltest)
|
||||
{
|
||||
if (timeRemaining > 0)
|
||||
{
|
||||
|
@ -536,6 +694,9 @@ public class Submit : MonoBehaviour
|
|||
timeRemaining = 60;
|
||||
break;
|
||||
case Subject.Aluminumelectricaltest:
|
||||
Handinanexaminationpaper3();
|
||||
Debug.Log("供电合同考试");
|
||||
timeRemaining = 60;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Device;
|
||||
using UnityEngine.SocialPlatforms.Impl;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class Thefifthstep : MonoBehaviour
|
||||
|
@ -75,12 +76,7 @@ public class Thefifthstep : MonoBehaviour
|
|||
/// 确认按钮
|
||||
/// </summary>
|
||||
public Button sendbutton55;
|
||||
/// <summary>
|
||||
/// 第五步判断得分
|
||||
/// </summary>
|
||||
private float thefifthstep1 = 0f;
|
||||
private float thefifthstep2 = 0f;
|
||||
private float thefifthstep3 = 0f;
|
||||
|
||||
void Start()
|
||||
{
|
||||
waittobedonebutton.onClick.AddListener(() =>
|
||||
|
@ -113,24 +109,16 @@ public class Thefifthstep : MonoBehaviour
|
|||
sendbutton55.onClick.AddListener(() =>
|
||||
{
|
||||
Debug.Log("第五步得分");
|
||||
if (serialtoggle.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//是否勾选
|
||||
//thefifthstep1 = ScoreManager.Instance.scores[4] * 0.2f;
|
||||
Practicescore5();
|
||||
}
|
||||
if (singsisp)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//签收
|
||||
//thefifthstep2 = ScoreManager.Instance.scores[4] * 0.2f;
|
||||
Judgmentstep5();
|
||||
}
|
||||
if (examinetoggle5.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(9);//是否通过
|
||||
//thefifthstep3 = ScoreManager.Instance.scores[4] * 0.6f;
|
||||
}
|
||||
//float value = thefifthstep1 + thefifthstep2 + thefifthstep3;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
thefifthsteppanl4.gameObject.SetActive(false);
|
||||
});
|
||||
examinetoggle5.onValueChanged.AddListener((ison) =>
|
||||
|
@ -149,6 +137,54 @@ public class Thefifthstep : MonoBehaviour
|
|||
}
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore5()
|
||||
{
|
||||
if (serialtoggle.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//是否勾选
|
||||
}
|
||||
if (singsisp)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//签收
|
||||
}
|
||||
if (examinetoggle5.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(7.5f);//是否通过
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep5()
|
||||
{
|
||||
float scroe = 0f;
|
||||
string str;
|
||||
if(serialtoggle.isOn)
|
||||
{
|
||||
scroe += (float.Parse(ScoreManager.Instance.totalpoints[4]) * 0.2f);
|
||||
}
|
||||
if (singsisp)
|
||||
{
|
||||
scroe += (float.Parse(ScoreManager.Instance.totalpoints[4]) * 0.2f);
|
||||
}
|
||||
if (examinetoggle5.isOn)
|
||||
{
|
||||
scroe += (float.Parse(ScoreManager.Instance.totalpoints[4]) * 0.6f);
|
||||
}
|
||||
if ((scroe - Mathf.Floor(scroe)) < 0.001f)
|
||||
{
|
||||
str = scroe.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = scroe.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[4] = float.Parse(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关闭签收成功按钮
|
||||
/// </summary>
|
||||
|
|
|
@ -321,39 +321,17 @@ public class Thethirdsteppanl : MonoBehaviour
|
|||
sendbutton.onClick.AddListener(() =>
|
||||
{
|
||||
Debug.Log("第三步得分");
|
||||
if (toggleiamge1.isOn)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Electricchargeexercise ||
|
||||
ScoreManager.Instance.Subject == Subject.Aluminoelectricexercise)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1.5f);//页面勾选
|
||||
//thethirdstep1 = ScoreManager.Instance.scores[2] * 0.2f;
|
||||
Practicescore3();
|
||||
}
|
||||
if (ispsign)
|
||||
if (ScoreManager.Instance.Subject == Subject.Performanceexamination)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//页面签到
|
||||
//thethirdstep2 = ScoreManager.Instance.scores[2] * 0.2f;
|
||||
Judgmentstep3();
|
||||
}
|
||||
if (togglepromise.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2f);//是否违约
|
||||
//thethirdstep3 = ScoreManager.Instance.scores[2] * 0.2f;
|
||||
}
|
||||
if (electricitytoggle1.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//是否是窃电类型
|
||||
//thethirdstep4 = ScoreManager.Instance.scores[2] * 0.1f;
|
||||
}
|
||||
if (breachtoggle2.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(1);
|
||||
//thethirdstep5 = ScoreManager.Instance.scores[2] * 0.1f;
|
||||
}
|
||||
if (glideinput1.captionText.text == "否" && glideinput2.captionText.text == "否" && glideinput3.captionText.text == "否" && glideinput4.captionText.text == "否")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(4);
|
||||
//thethirdstep6 = ScoreManager.Instance.scores[2] * 0.2f;
|
||||
}
|
||||
//float value = thethirdstep1 + thethirdstep2 + thethirdstep3 + thethirdstep4 + thethirdstep5 + thethirdstep6;
|
||||
//ScoreManager.Instance.totalpoints.Add(value);
|
||||
//Debug.Log(ScoreManager.Instance.Score);
|
||||
|
||||
thirdoperationpanl15.gameObject.SetActive(false);
|
||||
});
|
||||
signforbutton.onClick.AddListener(() =>
|
||||
|
@ -423,6 +401,84 @@ public class Thethirdsteppanl : MonoBehaviour
|
|||
}
|
||||
});
|
||||
}
|
||||
/// <summary>
|
||||
/// 练习步骤得分
|
||||
/// </summary>
|
||||
private void Practicescore3()
|
||||
{
|
||||
if (toggleiamge1.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2.5f);//页面勾选
|
||||
}
|
||||
if (ispsign)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//页面签到
|
||||
|
||||
}
|
||||
if (togglepromise.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2f);//是否违约
|
||||
|
||||
}
|
||||
if (electricitytoggle1.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);//是否是窃电类型
|
||||
|
||||
}
|
||||
if (breachtoggle2.isOn)
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
|
||||
}
|
||||
if (glideinput1.captionText.text == "否" && glideinput2.captionText.text == "否" && glideinput3.captionText.text == "否" && glideinput4.captionText.text == "否")
|
||||
{
|
||||
ScoreManager.Instance.AddScore(2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 考试步骤得分
|
||||
/// </summary>
|
||||
private void Judgmentstep3()
|
||||
{
|
||||
float score = 0f;
|
||||
string str;
|
||||
if (toggleiamge1.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.2f);
|
||||
}
|
||||
if (ispsign)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.16f);
|
||||
}
|
||||
if (togglepromise.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.16f);
|
||||
}
|
||||
if (electricitytoggle1.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.16f);
|
||||
}
|
||||
if (breachtoggle2.isOn)
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.16f);
|
||||
}
|
||||
if (glideinput1.captionText.text == "否" && glideinput2.captionText.text == "否" && glideinput3.captionText.text == "否" && glideinput4.captionText.text == "否")
|
||||
{
|
||||
score += (float.Parse(ScoreManager.Instance.totalpoints[2]) * 0.16f);
|
||||
}
|
||||
if (score- Mathf.Floor(score)< 0.001f)
|
||||
{
|
||||
str = score.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
str = score.ToString("0.000");
|
||||
}
|
||||
ScoreManager.Instance.Honourscores[2] = float.Parse(str);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 一定时间后失活图片
|
||||
/// </summary>
|
||||
|
|
|
@ -29,6 +29,10 @@ public class Transfercontract : MonoBehaviour
|
|||
/// </summary>
|
||||
public Button next2button;
|
||||
public Image[] inhabitants;
|
||||
///// <summary>
|
||||
///// 获取生成对象的位置
|
||||
///// </summary>
|
||||
public ScrollRect scrollRect;
|
||||
/// <summary>
|
||||
/// Óû§Í¼Æ¬
|
||||
/// </summary>
|
||||
|
@ -55,6 +59,7 @@ public class Transfercontract : MonoBehaviour
|
|||
switchpowersupplys[pageNum].SetActive(true);
|
||||
currentOpenObj = switchpowersupplys[pageNum];
|
||||
numberofpages2test.text = (pageNum + 1).ToString();
|
||||
Debug.Log("打印一遍");
|
||||
}
|
||||
|
||||
void Start()
|
||||
|
@ -69,18 +74,17 @@ public class Transfercontract : MonoBehaviour
|
|||
int index = i;
|
||||
switchptoggles[index].onValueChanged.AddListener((ison) =>
|
||||
{
|
||||
//numberofpages2test.text = (index + 1).ToString();
|
||||
//Correspondence(index);
|
||||
|
||||
PageNum = index;
|
||||
});
|
||||
}
|
||||
currentOpenObj = switchpowersupplys[0];
|
||||
//currentOpenToggle = switchptoggles[0];
|
||||
|
||||
previous2button.onClick.AddListener(Previous2);
|
||||
next2button.onClick.AddListener(Nextpage2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// µã»÷ÉÏÒ»Ò³
|
||||
/// </summary>
|
||||
|
@ -106,9 +110,11 @@ public class Transfercontract : MonoBehaviour
|
|||
/// </summary>
|
||||
public void Restore(int index)
|
||||
{
|
||||
PageNum=index;
|
||||
PageNum = index;
|
||||
switchptoggles[PageNum].isOn = true;
|
||||
scrollRect.verticalNormalizedPosition = 1;
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue