提交验电笔

This commit is contained in:
康地林 2023-09-17 17:05:07 +08:00
parent 621d6fb702
commit d123ad5a46
4 changed files with 62 additions and 22 deletions

View File

@ -10576,6 +10576,10 @@ PrefabInstance:
propertyPath: m_Name
value: "\u4F0F\u5B89UI"
objectReference: {fileID: 0}
- target: {fileID: 5953364403843559748, guid: 6858abc4395af9947bb1e19b0f27fffb, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5953364403843559751, guid: 6858abc4395af9947bb1e19b0f27fffb, type: 3}
propertyPath: m_Pivot.x
value: 0.5
@ -140631,6 +140635,10 @@ PrefabInstance:
propertyPath: m_TagString
value: Untagged
objectReference: {fileID: 0}
- target: {fileID: 1253040782233410607, guid: 3fb1235fb3cb2ea4782e6c99e4cff4bf, type: 3}
propertyPath: isDian
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4300732867488139875, guid: 3fb1235fb3cb2ea4782e6c99e4cff4bf, type: 3}
propertyPath: m_RootOrder
value: 24

View File

@ -18,6 +18,8 @@ public class MultimeterManager : MonoBehaviour
// Update is called once per frame
void Update()
{
if (Camera)
{
// 鼠标左键按下
if (Input.GetMouseButtonDown(0))
@ -29,7 +31,7 @@ public class MultimeterManager : MonoBehaviour
RaycastHit hit;
// 进行碰撞检测
bool res = Physics.Raycast(ray, out hit,1 << 7) && !EventSystem.current.IsPointerOverGameObject();
bool res = Physics.Raycast(ray, out hit, 1 << 7) && !EventSystem.current.IsPointerOverGameObject();
if (res)
{
@ -48,4 +50,5 @@ public class MultimeterManager : MonoBehaviour
}
}
}
}
}

View File

@ -0,0 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VoltAmpereMeter : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

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