Merge branch 'master' of http://119.45.94.212:1280/zhuyayu/E_ElecCompetition
This commit is contained in:
commit
e541ef2502
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -15,7 +15,7 @@ public class ClampAmmetersInteractive : MonoBehaviour
|
||||||
[ContextMenu("ÔËÐÐ")]
|
[ContextMenu("ÔËÐÐ")]
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
g1 = transform.GetChild(0).gameObject;
|
g1 = g1.GetComponent<GameObject>();
|
||||||
//Destroy(g1.GetComponent<MeshFilter>());
|
//Destroy(g1.GetComponent<MeshFilter>());
|
||||||
//Destroy(g1.GetComponent<MeshRenderer>());
|
//Destroy(g1.GetComponent<MeshRenderer>());
|
||||||
//Destroy(g1.GetComponent<BoxCollider>());
|
//Destroy(g1.GetComponent<BoxCollider>());
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Unity.VisualScripting;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class QianXingDianLiu : MonoBehaviour
|
||||||
|
{
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (Input.GetMouseButtonDown(0))
|
||||||
|
{
|
||||||
|
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||||
|
RaycastHit hit;
|
||||||
|
if (Physics.Raycast(ray, out hit))
|
||||||
|
{
|
||||||
|
Debug.Log(hit.transform.tag);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6fffd262737c42944849a45851d5c70f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
Reference in New Issue