Example #1
0
 // [SerializeField] VideoCapture VC;
 // Start is called before the first frame update
 void Start()
 {
     appInfo                    = GetComponentInParent <IAppInfo>();
     transform.parent           = appInfo.GetLeftController();
     transform.localPosition    = appInfo.GetRecordButtonPosition();
     transform.localEulerAngles = appInfo.GetRecordButtonEulerAngles();
     SetChildrenActive(false);
     currentstate = false;
     gameObject.GetComponent <Renderer>().material = recordButton;
 }