Example #1
0
 void Start()
 {
     GetComponent <SpriteRenderer>().enabled = true;
     hole_Renderer.enabled   = false;
     hole_Collider2D.enabled = false;
     itempickup = GameObject.FindGameObjectWithTag("Key").GetComponent <itemPickup>();
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();

        GameObject lightObject = GameObject.FindGameObjectWithTag ("Flashlight");
        cTObject = lightObject.GetComponent<colorToggle> ();

        renderer.enabled = false;
    }
Example #3
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();
        particleSystem.enableEmission = false;

        GameObject doorMagenta = GameObject.FindGameObjectWithTag ("doorBRCyan");
        cEObject = doorMagenta.GetComponent<cyanBRExit> ();

        //ParticleSystem inkFallSystem = (ParticleSystem)gameObject.GetComponent ("inkFallSystem");
        //inkFallSystem.enableEmission = false;
    }
Example #4
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();
        particleSystem.enableEmission = false;

        GameObject doorYellow = GameObject.FindGameObjectWithTag ("doorGRYellow");
        yEObject = doorYellow.GetComponent<yellowGRExit> ();

        //ParticleSystem inkFallSystem = (ParticleSystem)gameObject.GetComponent ("inkFallSystem");
        //inkFallSystem.enableEmission = false;
    }
Example #5
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();

        this.objects = Resources.LoadAll ("exitDoorBRcyan", typeof(Texture));
        this.textures = new Texture[objects.Length];

        for(int i=0; i < objects.Length; i++)
        {
            this.textures[i] = (Texture)this.objects[i];
        }
    }
Example #6
0
 // Use this for initialization
 void Start()
 {
     GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
     iPObject = playerObject.GetComponent<itemPickup> ();
 }