Example #1
0
// script name + name we're going to use for the script
    // Use this for initialization
    void Start()
    {
        playerIsInsideArea = false;

        smallPlayer           = GameObject.Find("SmallPlayer");
        smallPlayerController = FindObjectOfType <SmallPlayerController>();
    }
Example #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);
 }