This commit is contained in:
huangjiayu 2023-09-16 23:45:19 +08:00
commit e541ef2502
5 changed files with 8293 additions and 1257 deletions

View File

@ -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>());

View File

@ -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);
}
}
}
}

View File

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