// Start is called before the first frame update void Start() { cameraScript = customizePanelObj.GetComponent <CameraView>(); disableScript = GameObject.Find("Game Controller").GetComponent <disableAllClicks>(); openTable = tableObj.GetComponent <Animator>(); openDrawer = drawerObj.GetComponent <Animator>(); //gameMessagePanel = GameObject.Find("GameMessagePanel"); }
// Start is called before the first frame update void Start() { oriGreen = greenLight.GetComponent <MeshRenderer>().material; oriRed = redLight.GetComponent <MeshRenderer>().material; outputString = output.GetComponent <Text>(); doorOpen = door.GetComponent <Animator>(); keys = keypad.GetComponent <Animator>(); doorSound = doorSoundObj.GetComponent <AudioSource>(); clickSound = clickSoundObj.GetComponent <AudioSource>(); unlockSound = unlockSoundObj.GetComponent <AudioSource>(); wrongSound = wrongSoundObj.GetComponent <AudioSource>(); disableScript = GameController.GetComponent <disableAllClicks>(); timer = new Timer(); DontDestroyOnLoad(this.gameObject); }
// Start is called before the first frame update void Start() { tableAnimator = GetComponent <Animator>(); openDrawer = GetComponent <AudioSource>(); disableScript = gameController.GetComponent <disableAllClicks>(); }
// Start is called before the first frame update void Start() { cstPan = GameObject.Find("CustomizationPanel").GetComponent <CustomizationPanel>(); disableScript = GameObject.Find("Game Controller").GetComponent <disableAllClicks>(); cameraScript = GameObject.Find("CustomizationPanel").GetComponent <CameraView>(); }
// Start is called before the first frame update void Start() { gameControllerScript = GameObject.Find("Game Controller").GetComponent <disableAllClicks>(); onhitScript = onHitObj.GetComponent <OnHit>(); }
// Start is called before the first frame update void Start() { openCabinet = cupboardObj.GetComponent <Animator>(); openSound = GetComponent <AudioSource>(); disableScript = gameController.GetComponent <disableAllClicks>(); }