using System.Collections; using System.Collections.Generic; using UnityEngine; using Valve.VR.InteractionSystem; public class Singleton : MonoBehaviour { private static Singleton _instance; public static Singleton Instance { get { return _instance; } } private void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } } }