private void Awake() { if (singleton != null) { return; } singleton = this; }
private void OnEnable() { vrInput = VRInput.singleton; if (vrInput == null) { vrInput = gameObject.AddComponent <VRInput>(); } vrInput.OnClick += HandleClick; }