06-25-2018 03:47 AM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript1 : MonoBehaviour {
// Use this for initialization
private Transform childObject;
private ParticleSystem objectParticles;
private LineRenderer objectLineRenderer;
void Start () {
childObject = gameObject.transform.Find("EventHohl");
objectLineRenderer = childObject.GetComponent<LineRenderer>();
}
// Update is called once per frame
void Update () {
if (OVRInput.Get(OVRInput.Button.Two));
objectLineRenderer.enabled = false;
}
}
06-25-2018 04:24 AM