叉车场景

This commit is contained in:
taosuqi 2025-10-15 21:05:52 +08:00
parent 949f42ed16
commit 012597bab3
6 changed files with 8239 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 177ebe2676c1f0c4589cba00ab159fc5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -140,7 +140,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!81 &16485168
AudioListener:
m_ObjectHideFlags: 0
@ -4029,6 +4029,10 @@ PrefabInstance:
propertyPath: m_Name
value: "\u53C9\u8F66\u5C55\u533A\u573A\u666F"
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 378241dd6e53d8544b7497f727b4334c, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8144394004440419581, guid: 378241dd6e53d8544b7497f727b4334c, type: 3}
propertyPath: m_IsActive
value: 0
@ -4914,7 +4918,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!65 &1177191235
BoxCollider:
m_ObjectHideFlags: 0

View File

@ -5,7 +5,7 @@ using UnityEngine.UI;
using UnityEngine.Video;
/// <summary>
/// 屏幕控制(场景跳转、视频播放)
/// 起重机屏幕控制(场景跳转、视频播放)
/// </summary>
public class DisplayScreenController : MonoBehaviour
{

View File

@ -0,0 +1,67 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
/// <summary>
/// ²æ³µÆÁÄ»¿ØÖÆ£¨³¡¾°Ìø×ª¡¢ÊÓÆµ²¥·Å£©
/// </summary>
public class ForkliftScreenController : MonoBehaviour
{
[Header("ģʽ½çÃæ")]
public GameObject[] AllRawImage;
public Button CZMNBtn; //Ä£Äâ²Ù×÷°´Å¥
public Button SGMNBtn; //ʹÊÄ£Äâ°´Å¥
public Button SGAlBtn; //ʹʰ¸Àý°´Å¥
[Header("ʹʰ¸Àý·µ»Ø°´Å¥")]
public Button SBCJRetrueBtn; //ʹʰ¸Àý·µ»Ø°´Å¥
private void Awake()
{
Init();
}
public void Init()
{
for (int i = 0; i < AllRawImage.Length; i++)
{
AllRawImage[i].SetActive(i == 0);
}
}
void Start()
{
CZMNBtn.onClick.AddListener(() =>
{
Debug.Log("CZMNBtn");
for (int i = 0; i < AllRawImage.Length; i++)
{
AllRawImage[i].SetActive(i == 1);
}
});
SGMNBtn.onClick.AddListener(() =>
{
Debug.Log("SGMNBtn");
for (int i = 0; i < AllRawImage.Length; i++)
{
AllRawImage[i].SetActive(i == 3);
}
});
SGAlBtn.onClick.AddListener(() =>
{
Debug.Log("SGAlBtn");
for (int i = 0; i < AllRawImage.Length; i++)
{
AllRawImage[i].SetActive(i == 3);
}
});
SBCJRetrueBtn.onClick.AddListener(() =>
{
Debug.Log("ʹʰ¸Àý·µ»Ø°´Å¥");
for (int i = 0; i < AllRawImage.Length; i++)
{
AllRawImage[i].SetActive(i == 0);
}
});
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2a7fc95b320af1b4d9fa57a167b4bd17
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: