void Awake() { message = text.GetComponent <uiSystem> (); if (this.gameObject.name == "badge") { taken = gui.GetComponent <guiSystem> (); } if (Application.loadedLevel == 3) { irma = pc.GetComponent <irmaScript> (); } }
void Awake() { if (Application.loadedLevel == 1) { talk = William.GetComponent <securityBehavior>(); talk2 = Maria.GetComponent <mariaBehavior>(); talk3 = Richard.GetComponent <richardBehavior>(); cursor = gui.GetComponent <guiSystem>(); } else if (Application.loadedLevel == 3) { talk4 = IRMA.GetComponent <irmaScript>(); cursor = gui.GetComponent <guiSystem>(); } }