// 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); }
// 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); }