void Awake() { if (GetComponent<Light> ().isActiveAndEnabled) { GetComponent<Light> ().enabled = false; } gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); }
void Start() { horseMission = GameObject.Find ("Missions").GetComponent<HorseMission_BackEnd> (); if (!dropParticle) { Debug.LogError ("No Particles - Horse"); } GateClose = GameObject.Find("GateCloser").GetComponent<Animator>(); gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); }
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> (); } }
void Start() { boxCount = GameObject.Find ("CratePickupCollection").transform.childCount; // the number of boxes in the mission boxMission = GameObject.Find ("Missions").GetComponent<NPC_BoxesMission> (); gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); grabbingFailSafe = GameObject.Find("handle").GetComponent<grabbing>(); if(!dropParticle){ Debug.LogError("No Particles - Boxes"); } }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); umbrellaObject = GameObject.Find ("Umbrella").transform; umbrellaModel = umbrellaObject.GetComponent<Animator> (); if (gameManager.consoleControllerType == ConsoleControllerType.PS3) { gameTutorial = GameObject.Find ("Tutorial_PS3").GetComponent<Tutuorial> (); } else if (gameManager.consoleControllerType == ConsoleControllerType.XBox) { gameTutorial = GameObject.Find ("Tutorial_XBox").GetComponent<Tutuorial> (); } }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); gameState = gameManager.gameState; rb = gameObject.GetComponent<Rigidbody> (); if (gameManager.controllerType == ControllerType.ConsoleContoller) { if (gameManager.consoleControllerType == ConsoleControllerType.PS3) { tutorialAnim = GameObject.Find ("Tutorial_PS3").GetComponent<Animator> (); } else if (gameManager.consoleControllerType == ConsoleControllerType.XBox) { tutorialAnim = GameObject.Find ("Tutorial_XBox").GetComponent<Animator> (); } } else if (gameManager.controllerType == ControllerType.Keyboard) { tutorialAnim = GameObject.Find ("Down_tutorial").GetComponent<Animator> (); } }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); _timer = timer; horse1Destinations = GameObject.Find ("Horse1Destinations").transform; horse2Destinations = GameObject.Find ("Horse2Destinations").transform; if (destinations.Length != 4) { destinations = new Transform[4]; } if (this.name == "Horse1") { for (int child = 0; child < horse1Destinations.childCount; child++) { destinations [child] = horse1Destinations.GetChild (child); } } else if (this.name == "Horse2") { for (int child = 0; child < horse2Destinations.childCount; child++) { destinations [child] = horse2Destinations.GetChild (child); } } horseNav = gameObject.GetComponent<NavMeshAgent> (); horseNav.SetDestination (destinations [0].position); nextDestination = destinations [0]; gameObjectAudio = GetComponent<AudioSource> (); horseAnim = gameObject.GetComponent<Animator> (); umbrellaTr = GameObject.Find ("main_Sphere").transform; speedRun = 0; horseName = this.name; destination = "nextDestination"; }
//--------------------------------------------------------------------------------------------------------------≠// 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; } }
/// Initializes working variables and performs starting calculations. void Initialize() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); missionState = gameManager.missionState; mapCentre = GameObject.Find ("Centre of Map").transform; sun = GetComponent<Light> (); }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); cmaera = GameObject.Find ("Follow Camera"); NPC_dropoff = GameObject.Find ("NPC_Cat"); npc_Animator = NPC_dropoff.GetComponent<Animator> (); overHereLight = NPC_dropoff.transform.FindChild ("Sphere").transform.FindChild ("Activate").gameObject;//where ever the light is on the NPC_Talk characters. I think it's a child of the 'head'. npc_Interact = NPC_dropoff.GetComponent<NPC_Interaction> (); catDropOff = GameObject.Find ("Drop-Off Zone (Cat)").GetComponent<MeshRenderer> (); cat_Activate = GameObject.Find("kitten").transform.FindChild("Activate").GetComponent<Light>(); talkCoroutine = GameObject.Find ("NPC_TalkBox").GetComponent<Talk> (); jumpAround_Cat = true; catMission = true; }
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> (); rb = GetComponent<Rigidbody> (); }
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> (); }
void Start() { GameManager = GetComponent<GmaeManage> (); gameState = GameManager.gameState; camrea = GetComponent<Camera> (); lookAt = GameObject.Find ("main_Sphere"); lookAtTr = lookAt.transform; lookAtRb = lookAt.GetComponent<Rigidbody> (); move = true; height = 3f; distance = 2.5f; }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); if (gameManager.controllerType == ControllerType.ConsoleContoller) { if (gameManager.consoleControllerType == ConsoleControllerType.PS3) { windAnim = GameObject.Find ("Tutorial_PS3").GetComponent<Animator> (); Talk_Button = GameObject.Find ("L1_tutorial").GetComponent<Image> (); Interact_Button = GameObject.Find ("R1_tutorial").GetComponent<Image> (); Talk_Animator = GameObject.Find ("L1_tutorial").GetComponent<Animator> (); Interact_Animator = GameObject.Find ("R1_tutorial").GetComponent<Animator> (); } else if (gameManager.consoleControllerType == ConsoleControllerType.XBox) { windAnim = GameObject.Find ("Tutorial_XBox").GetComponent<Animator> (); Talk_Button = GameObject.Find ("LB_tutorial").GetComponent<Image> (); Interact_Button = GameObject.Find ("RB_tutorial").GetComponent<Image> (); Talk_Animator = GameObject.Find ("LB_tutorial").GetComponent<Animator> (); Interact_Animator = GameObject.Find ("RB_tutorial").GetComponent<Animator> (); } } else if (gameManager.controllerType == ControllerType.Keyboard) { Talk_Button = GameObject.Find ("Q_tutorial").GetComponent<Image> (); Interact_Button = GameObject.Find ("E_tutorial").GetComponent<Image> (); windAnim = GameObject.Find ("UP_tutorial").GetComponent<Animator> (); Talk_Animator = GameObject.Find ("Q_tutorial").GetComponent<Animator> (); Interact_Animator = GameObject.Find ("E_tutorial").GetComponent<Animator> (); } }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); horseGuy = GameObject.Find ("HorseMan"); horseGuy.GetComponent<NPC_Interaction> ().missionDelegate = StartHorsesMission;// he will only give you the horse mission. overHereLight = horseGuy.transform.FindChild ("Sphere").transform.FindChild ("Activate").gameObject; overHereLight.SetActive (false); npc_Interact = horseGuy.GetComponent<NPC_Interaction> (); if (horseGuy.GetComponent<Animator> ()) { npc_Animator = horseGuy.GetComponent<Animator> (); if (!npc_Animator.isActiveAndEnabled) { npc_Animator.enabled = true; } } horseDropOff = GameObject.Find ("HorseDropoff").GetComponent<MeshRenderer> (); horses = GameObject.Find ("Horses").transform; if (GetComponent<Animator> ()) { if (!npc_Animator.isActiveAndEnabled) { npc_Animator.enabled = true; } } horse_X = 0; talkCoroutine = GameObject.Find ("NPC_TalkBox").GetComponent<Talk> (); }
void Start() { gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); umbrella = GameObject.Find ("main_Sphere"); 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> (); } achieves = GameObject.Find ("Follow Camera").GetComponent<Achievements> (); rb = umbrella.GetComponent<Rigidbody> (); umbrellaCol = umbrella.GetComponent<Collider> (); }
void Start() { rb = GetComponent<Rigidbody> (); handle = GameObject.Find ("handle"); gameManager = GameObject.Find ("Follow Camera").GetComponent<GmaeManage> (); cameraController = GameObject.Find ("Follow Camera").GetComponent<Controller> (); upForce = GetComponent<upwardForce> (); controllerTypeVertical = gameManager.controllerTypeVertical_L; controllerTypeHorizontal = gameManager.controllerTypeHorizontal_L; umbrellaAnim = GameObject.Find ("Umbrella").GetComponent<Animator> (); rotationAnim = GameObject.Find ("Rotation_Sphere").GetComponent<Animator> (); defaultUpForce = upForce.upwardsforce; GetComponent<CapsuleCollider> ().radius = 0.5f; if (!upForce.isActiveAndEnabled) { upForce.enabled = true; } if (gameManager.controllerType == ControllerType.ConsoleContoller) { speed = 50; turningSpeed = 70; } else if (gameManager.controllerType == ControllerType.Keyboard) { speed = 25; turningSpeed = 35; } }
void Start() { gameManager = GameObject.Find("Follow Camera").GetComponent<GmaeManage>(); npcAudioSource = GetComponent<AudioSource> (); }