void Awake() { key = npc.GetComponent <securityBehavior> (); //badge = maria.GetComponent <mariaBehavior> (); badge = picture.GetComponent <pictureScript> (); taken = gui.GetComponent <guiSystem> (); message = text.GetComponent <uiSystem> (); Enemy = enemy.GetComponent <enemyBehavior> (); }
void Awake() { player = PC.GetComponent <playerScript> (); inv = holder.GetComponent <cameraScript> (); m = holder.GetComponent <menuScript> (); //badge = maria.GetComponent <mariaBehavior> (); if (Application.loadedLevel == 1) { key = npc.GetComponent <securityBehavior> (); badge = picture.GetComponent <pictureScript> (); } }
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>(); } }
void Awake() { talk = william.GetComponent <securityBehavior> (); message = text.GetComponent <uiSystem> (); }