This commit is contained in:
陈向学 2024-07-26 15:34:45 +08:00
parent 5347d6bb00
commit cc2a104b08
3 changed files with 33 additions and 4 deletions

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -1077,7 +1077,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!81 &459500707
AudioListener:
m_ObjectHideFlags: 0
@ -1725,7 +1725,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!108 &719187030
Light:
m_ObjectHideFlags: 0

View File

@ -63,6 +63,9 @@ public class FirstPanel : MonoBehaviour
void Awake()
{
//限制30帧
Application.targetFrameRate = 30;
currentChoseCustonItem = null;
instance = this;
backbtn.onClick.AddListener(() =>
@ -105,8 +108,19 @@ public class FirstPanel : MonoBehaviour
Debug.Log("福清配置读取成功:"+ fuqingWorkPlaceJson);
}
}));
style = new GUIStyle();
style.fontSize = 20;
style.normal.textColor= Color.white;
}
GUIStyle style;
#if UNITY_EDITOR
private void OnGUI()
{
GUI.Label(new Rect(500f,500f,2000f,1000f),"帧率:"+ showFram, style);
}
#endif
/// <summary>
/// 前端调用初始化传IP
@ -119,8 +133,21 @@ public class FirstPanel : MonoBehaviour
}
int fram = 0;
float tmptime=0;
int showFram;
private void Update()
{
fram++;
tmptime+= Time.deltaTime;
if(tmptime>=1)
{
showFram = fram;
tmptime = 0;
fram = 0;
}
int index = 0;
foreach (Image image in checkImages)
{

View File

@ -75,5 +75,7 @@ public class CustomItem : MonoBehaviour
//隐藏所有办事处地图
FirstPanel.instance.workPlace.SetActive(false);
Application.ExternalCall("ClickCustom", "");
}
}