Beispiel #1
0
 // 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");
 }
Beispiel #2
0
 // 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);
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     tableAnimator = GetComponent <Animator>();
     openDrawer    = GetComponent <AudioSource>();
     disableScript = gameController.GetComponent <disableAllClicks>();
 }
Beispiel #4
0
 // 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>();
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     gameControllerScript = GameObject.Find("Game Controller").GetComponent <disableAllClicks>();
     onhitScript          = onHitObj.GetComponent <OnHit>();
 }
Beispiel #6
0
 // Start is called before the first frame update
 void Start()
 {
     openCabinet   = cupboardObj.GetComponent <Animator>();
     openSound     = GetComponent <AudioSource>();
     disableScript = gameController.GetComponent <disableAllClicks>();
 }