master
GamerHJD 3 years ago
parent c1e9ea71ac
commit 7b37fbf0cf

@ -9,8 +9,8 @@ Material:
m_PrefabAsset: {fileID: 0}
m_Name: ColorRoad
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_ShaderKeywords: _EMISSION _GLOSSYREFLECTIONS_OFF _SPECULARHIGHLIGHTS_OFF
m_LightmapFlags: 2
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
@ -62,16 +62,16 @@ Material:
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _GlossyReflections: 0
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SpecularHighlights: 0
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.25495756, g: 0.9529412, b: 0.10196078, a: 0.53333336}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Color: {r: 0.34743315, g: 1, b: 0.2028302, a: 0.36862746}
- _EmissionColor: {r: 0.12290126, g: 1.3041189, b: 0.047794934, a: 1}

@ -64,7 +64,7 @@ Material:
- _GlossMapScale: 1
- _Glossiness: 0
- _GlossyReflections: 1
- _Metallic: 0.407
- _Metallic: 0
- _Mode: 2
- _OcclusionStrength: 1
- _Parallax: 0.02

@ -11,7 +11,7 @@ GameObject:
- component: {fileID: 5940721742220947025}
- component: {fileID: 5940721742223814263}
- component: {fileID: 5940721742222847159}
m_Layer: 0
m_Layer: 9
m_Name: Lun3
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -93,7 +93,7 @@ GameObject:
- component: {fileID: 5940721742220947027}
- component: {fileID: 5940721742223814257}
- component: {fileID: 5940721742222847153}
m_Layer: 0
m_Layer: 9
m_Name: Lun4
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -175,7 +175,7 @@ GameObject:
- component: {fileID: 5940721742220947029}
- component: {fileID: 5940721742223814267}
- component: {fileID: 5940721742222847163}
m_Layer: 0
m_Layer: 9
m_Name: Lun1
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -257,7 +257,7 @@ GameObject:
- component: {fileID: 5940721742220947031}
- component: {fileID: 5940721742223814261}
- component: {fileID: 5940721742222847157}
m_Layer: 0
m_Layer: 9
m_Name: Lun2
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -339,7 +339,7 @@ GameObject:
- component: {fileID: 5940721742220947033}
- component: {fileID: 5940721742223814271}
- component: {fileID: 5940721742222847167}
m_Layer: 0
m_Layer: 9
m_Name: Car_1a
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -418,7 +418,7 @@ GameObject:
- component: {fileID: 5940721742220947035}
- component: {fileID: 5940721742223814265}
- component: {fileID: 5940721742222847161}
m_Layer: 0
m_Layer: 9
m_Name: Car_1b
m_TagString: Untagged
m_Icon: {fileID: 0}
@ -499,7 +499,7 @@ GameObject:
- component: {fileID: 4806489167474073388}
- component: {fileID: 7591998529861248307}
- component: {fileID: 3545319385294605599}
m_Layer: 0
m_Layer: 9
m_Name: Car_1
m_TagString: Car
m_Icon: {fileID: 0}
@ -577,6 +577,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 03d716b4a7b9eab4e80362dd8f99826f, type: 3}
m_Name:
m_EditorClassIdentifier:
isnormalDrive: 1
dirveState: 0
drivetime: 0
carId: 0
@ -605,7 +606,7 @@ GameObject:
- component: {fileID: 5940721742220947039}
- component: {fileID: 5940721742223814269}
- component: {fileID: 5940721742222847165}
m_Layer: 0
m_Layer: 9
m_Name: Car_1
m_TagString: Untagged
m_Icon: {fileID: 0}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -30,6 +30,7 @@ public class GameRoot : MonoBehaviour
roadSys.Init();
//UI窗口初始化
menuWnd.Init();
infoWnd.Init();
//定时任务服务
pt = new PETimer();
}
@ -41,15 +42,10 @@ public class GameRoot : MonoBehaviour
private void Update()
{
pt.Update();
// pt.Update();
roadSys.RoadStateUpdate(3);//每n秒检测路段状态
infoWnd.UpdateTime();
}

@ -1,4 +1,5 @@
using System.Collections;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
@ -7,7 +8,14 @@ public class InfoWnd : MonoBehaviour
{
public Text carTxt;
public Text humanTxt;
public Text dateTxt;
public string date;
public void Init()
{
}
public void SetCarText(int Addvalue)
{
@ -20,4 +28,18 @@ public class InfoWnd : MonoBehaviour
int n = int.Parse(humanTxt.text) + Addvalue;
humanTxt.text = n.ToString();
}
public void UpdateTime()
{
var hour = DateTime.Now.Hour;
var minute = DateTime.Now.Minute;
var second = DateTime.Now.Second;
var year = DateTime.Now.Year;
var month = DateTime.Now.Month;
var day = DateTime.Now.Day;
date = string.Format( "{0:D4}/{1:D2}/{2:D2}"+" "+"{3:D2}:{4:D2}:{5:D2} " , year, month, day,hour, minute, second);
dateTxt.text = date;
}
}

@ -3,6 +3,7 @@
"com.unity.collab-proxy": "1.2.16",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.2.3",
"com.unity.postprocessing": "3.0.3",
"com.unity.recorder": "3.0.3",
"com.unity.test-framework": "1.1.19",
"com.unity.textmeshpro": "2.1.1",

@ -30,6 +30,15 @@
"dependencies": {},
"url": "https://packages.unity.cn"
},
"com.unity.postprocessing": {
"version": "3.0.3",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.modules.physics": "1.0.0"
},
"url": "https://packages.unity.cn"
},
"com.unity.recorder": {
"version": "3.0.3",
"depth": 0,

@ -35,6 +35,9 @@ GraphicsSettings:
- {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}

@ -12,8 +12,8 @@ PlayerSettings:
targetDevice: 2
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
productName: Test
companyName: ZhiQing
productName: CrafficSafe
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@ -48,8 +48,8 @@ PlayerSettings:
m_SloganImage: {fileID: 0}
m_SloganHeight: 150
m_HolographicTrackingLossScreen: {fileID: 0}
defaultScreenWidth: 1024
defaultScreenHeight: 768
defaultScreenWidth: 1280
defaultScreenHeight: 780
defaultScreenWidthWeb: 960
defaultScreenHeightWeb: 600
m_StereoRenderingPath: 0
@ -97,7 +97,7 @@ PlayerSettings:
xboxEnableFitness: 0
visibleInBackground: 1
allowFullscreenSwitch: 1
fullscreenMode: 1
fullscreenMode: 3
xboxSpeechDB: 0
xboxEnableHeadOrientation: 0
xboxEnableGuest: 0
@ -582,7 +582,19 @@ PlayerSettings:
webGLLinkerTarget: 1
webGLThreadsSupport: 0
webGLWasmStreaming: 0
scriptingDefineSymbols: {}
scriptingDefineSymbols:
1: UNITY_POST_PROCESSING_STACK_V2
4: UNITY_POST_PROCESSING_STACK_V2
7: UNITY_POST_PROCESSING_STACK_V2
13: UNITY_POST_PROCESSING_STACK_V2
14: UNITY_POST_PROCESSING_STACK_V2
19: UNITY_POST_PROCESSING_STACK_V2
21: UNITY_POST_PROCESSING_STACK_V2
25: UNITY_POST_PROCESSING_STACK_V2
27: UNITY_POST_PROCESSING_STACK_V2
28: UNITY_POST_PROCESSING_STACK_V2
29: UNITY_POST_PROCESSING_STACK_V2
30: UNITY_POST_PROCESSING_STACK_V2
platformArchitecture: {}
scriptingBackend: {}
il2cppCompilerConfiguration: {}

@ -19,7 +19,7 @@ TagManager:
-
-
- bg
-
- Dynamic
-
-
-

Loading…
Cancel
Save