//--------------------------------------------------------------------------------------------------------------≠// void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); if (gameManager.gameState != GameState.NullState) { bridge_npc = GameObject.Find ("NPC_Bridge"); priest = GameObject.Find ("Priest"); lightHouseKeeper = GameObject.Find ("NPC_LightHouseKeeper"); NPC_worker = GameObject.Find ("NPC_Worker"); pickupTool = GameObject.Find ("Pickaxe"); lighthouseRotate = GameObject.Find ("LigthHouse_Glass").GetComponent<LightOnRotate> (); LightHouseKeep_DropOff = GameObject.Find ("LightHouseKeep_DropOff"); if (LightHouseKeep_DropOff.activeSelf) { LightHouseKeep_DropOff.SetActive (false); } bridgeDrop = GameObject.Find ("Walkway-Bridge_C-Basic").GetComponent<DropTheBridge> (); overHereLight = bridge_npc.transform.FindChild ("Sphere").transform.FindChild ("Activate").gameObject; talkCoroutine = GameObject.Find ("NPC_TalkBox").GetComponent<Talk> (); if (lookAtObjects.Length != 4) { lookAtObjects = new GameObject[4]; } lookAtObjects [0] = GameObject.Find ("Church_Roof"); lookAtObjects [1] = GameObject.Find ("Lighthouse_LookAt"); lookAtObjects [2] = GameObject.Find ("Pickaxe"); lookAtObjects [3] = GameObject.Find ("Walkway-Bridge_C-Basic"); if (moveToObjects.Length != 3) { moveToObjects = new Transform[3]; } moveToObjects [0] = GameObject.Find ("lighthouseMove").transform; moveToObjects [1] = GameObject.Find ("Robbing_Point").transform; moveToObjects [2] = GameObject.Find ("Lighthouse_Move").transform; umbrella = GameObject.Find ("main_Sphere"); npc_Interact = bridge_npc.GetComponent<NPC_Interaction> (); npc_Interact.missionDelegate = StartFinalMission; npc_Animator = bridge_npc.GetComponent<Animator> (); jumpAround_Final = true; currentPerson = bridge_npc; cmaera = GameObject.Find ("Follow Camera"); cmaeraMove = cmaera.GetComponent<_MoveCamera> (); handle = GameObject.Find ("handle"); workingSource = lighthouseRotate.transform.GetChild(1).GetComponent<AudioSource>(); // workingSFX = workingSource.clip; } }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); npc_Talking = GameObject.Find ("NPC_Talking").GetComponent<Text> (); npc_TalkBox = GetComponent<Image> (); if (gameManager.controllerType == ControllerType.ConsoleContoller) { if(gameManager.consoleControllerType == ConsoleControllerType.PS3){ Talk_Click = this.transform.GetChild (0).GetComponent<Animator> (); }else if(gameManager.consoleControllerType == ConsoleControllerType.XBox){ Talk_Click = this.transform.GetChild (1).GetComponent<Animator> (); } }else if(gameManager.controllerType == ControllerType.Keyboard) { Talk_Click = this.transform.GetChild (2).GetComponent<Animator> (); } cameraMove = GameObject.Find ("Follow Camera").GetComponent<_MoveCamera> (); colourFadeIN = new Vector4 (npc_TalkBox.color.r, npc_TalkBox.color.g, npc_TalkBox.color.b, 0.5f); colourFadeOUT = new Vector4 (npc_TalkBox.color.r, npc_TalkBox.color.g, npc_TalkBox.color.b, 0f); }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); if (gameManager.consoleControllerType == ConsoleControllerType.PS3) { tutorial = GameObject.Find ("Tutorial_PS3").GetComponent<Tutuorial> (); } else if (gameManager.consoleControllerType == ConsoleControllerType.XBox) { tutorial = GameObject.Find ("Tutorial_XBox").GetComponent<Tutuorial> (); } npc_TutorialMission = GameObject.Find ("Missions").GetComponent<NPC_TutorialMission> (); caughtPiece = transform.parent.transform.FindChild ("Pickup_pole").gameObject; activeLight = GameObject.Find("Pickup_pole").transform.FindChild ("Activate").GetComponent<Light> (); //finds the light attahed to the caughtpiece windParticles = transform.FindChild("Windmill Particle System").gameObject; // not sure what this is used for handle = GameObject.Find ("handle").transform; moveTo = GameObject.Find ("MoveTo").transform; GetComponent<AudioSource> ().enabled = false; cmaeraMove = GameObject.Find ("Follow Camera").GetComponent<_MoveCamera> (); }