initial
This commit is contained in:
1 parent
75fa7ab38c
commit
c9424320ae
1425 files changed
+484748
-5
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Components_Install_Trigger : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
//Debug.Log("Touched: " + other.gameObject.name);
|
||||
if (other.gameObject.tag == "SMD_Plate_component")
|
||||
{
|
||||
other.gameObject.GetComponent<MeshRenderer>().enabled = true;
|
||||
//Debug.Log("Activated: " + other.gameObject.name);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user