private void Pop() { if (Wakaba.VR.VrUtils.IsVREnabled() == true) { GameControl.AddScore(points); } else { GameControlPC.AddScore(points); } Destroy(gameObject); }
private void Awake() { if (useVR) { VrUtils.SetVREnabled(true); } if (!instance) { instance = this; } else { Destroy(this); } }