Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        rLObject = playerObject.GetComponent<roomsLoaded> ();

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

        rLObject.setGreenLock (false);
    }
Beispiel #2
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;
    }