generated from VR-Sexe/Unity3DTemplate
x
This commit is contained in:
parent
1d317851f3
commit
b600e2c1b2
@ -4,7 +4,7 @@ using UnityEngine;
|
||||
|
||||
public class interfaceScript : MonoBehaviour
|
||||
{
|
||||
string Btn;
|
||||
string btnName;
|
||||
RaycastHit hit;
|
||||
public GameObject cube;
|
||||
private Renderer cubeRenderer;
|
||||
@ -23,7 +23,10 @@ public class interfaceScript : MonoBehaviour
|
||||
btnName = hit.transform.name;
|
||||
switch (btnName){
|
||||
case "Cube":
|
||||
cubeRenderer.material.SetColor("_Color", Color.red)
|
||||
cubeRenderer.material.SetColor("_Color", Color.red);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user