private void Awake() { if (instance != null) { Destroy(this); return; } instance = this; }
// Use this for initialization void Start() { smallPlayer = FindObjectOfType <SmallPlayerController>(); xRayPowerUp = false; centerEye = GameObject.Find("CenterEyeAnchor"); xRay = centerEye.GetComponent <ReplacementShaderEffect>(); hackPoints = FindObjectOfType <HackPoints>(); VictorySmallPlayer(false); //turning off the victory sign (and possibly sounds and other stuff) DeathSmallPlayer(false); gameIsPaused = false; pauseText.gameObject.SetActive(false); pauseVRText.gameObject.SetActive(false); Portal.SetActive(false); }