// 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; }
// Use this for initialization void Start() { GameObject playerObject = GameObject.FindGameObjectWithTag ("Player"); rLObject = playerObject.GetComponent<roomsLoaded> (); GameObject doorCyan = GameObject.FindGameObjectWithTag ("doorBRCyan"); cEObject = doorCyan.GetComponent<cyanBRExit> (); rLObject.setBlueLock (false); }