This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using HearXR; | |
public class CameraGyro : MonoBehaviour | |
{ | |
[SerializeField] Transform ear; | |
private void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AutoDestroy : MonoBehaviour | |
{ | |
[SerializeField] | |
private float destroyTime = 1.0f; | |
private void OnEnable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.MixedReality.Toolkit.Input; | |
using Microsoft.MixedReality.Toolkit.UI; | |
using UnityEditor.Events; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEngine.Events; | |
[RequireComponent(typeof(AudioSource))] | |
[RequireComponent(typeof(NearInteractionGrabbable))] | |
[RequireComponent(typeof(ObjectManipulator))] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AudioEffect : MonoBehaviour | |
{ | |
public AudioSpectrum spectrum; | |
public Transform[] effects; | |
public float scale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SpeedCheck : MonoBehaviour | |
{ | |
private Vector3 _lastPos; | |
private float speed; | |
private void LateUpdate() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class WorldPosViewer : MonoBehaviour | |
{ | |
private void OnDrawGizmos() | |
{ | |
#if UNITY_EDITOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ItemRot : MonoBehaviour | |
{ | |
[SerializeField] | |
private Vector3 worldRot, localRot; | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TransformLookAt : MonoBehaviour | |
{ | |
[SerializeField] | |
private Transform target; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ReCenter : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject Rig, Camera; | |
private Vector3 RigStartPos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ParticleAutoDestroy : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
StartCoroutine(DestroyParticle()); | |
} |