예제 #1
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        iPObject = playerObject.GetComponent<itemPickup> ();
        particleSystem.enableEmission = false;

        GameObject doorMagenta = GameObject.FindGameObjectWithTag ("doorBRMagenta");
        mEObject = doorMagenta.GetComponent<magentaBRExit> ();

        //ParticleSystem inkFallSystem = (ParticleSystem)gameObject.GetComponent ("inkFallSystem");
        //inkFallSystem.enableEmission = false;
    }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        GameObject playerObject = GameObject.FindGameObjectWithTag ("Player");
        rLObject = playerObject.GetComponent<roomsLoaded> ();

        GameObject doorMagenta = GameObject.FindGameObjectWithTag ("doorBRMagenta");
        mEObject = doorMagenta.GetComponent<magentaBRExit> ();

        rLObject.setBlueLock (false);
    }