예제 #1
0
    private void Awake()
    {
        if (instance != null)
        {
            Destroy(this);
            return;
        }

        instance = this;
    }
예제 #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);
 }