Ejemplo n.º 1
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(this);
            return;
        }

        instance = this;
    }
Ejemplo n.º 2
0
 // 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);
 }