// Use this for initialization void Start () { mover = null; setAnim = false; scriptHolder = GameObject.Find ("Main Camera").GetComponent<Camera>();; carrier = scriptHolder.GetComponent<playerInteract>(); hold = false; isCarrying = null; // Identifying the stones and moving platforms orngStone = GameObject.Find ("Orng_Stone_PlcHldr3"); bluStone = GameObject.Find ("Blue_Stone_PlcHldr2"); gStone = GameObject.Find ("Grn_Stone_PlcHldr"); plat1 = GameObject.Find ("Bridge_step_one"); plat2 = GameObject.Find ("Bridge_step_two"); plat3 = GameObject.Find ("Bridge_step_three"); plat4 = GameObject.Find ("Bridge_step_six"); bridge = GameObject.Find ("Bridge_to_Drop"); // set up whether the animation is to play only once or loop orngStone.animation ["oStoneInsert3"].wrapMode = WrapMode.ClampForever; bluStone.animation ["bStoneInsert2"].wrapMode = WrapMode.ClampForever; gStone.animation ["gStoneInsert"].wrapMode = WrapMode.ClampForever; plat1.animation ["firstStep"].wrapMode = WrapMode.Loop; plat2.animation ["secondStep"].wrapMode = WrapMode.Loop; plat3.animation ["secondStep2"].wrapMode = WrapMode.Loop; plat4.animation ["fourthStep"].wrapMode = WrapMode.Loop; bridge.animation ["toSanctuary"].wrapMode = WrapMode.ClampForever; }
// Use this for initialization void Start () { // get script for player interaction playerCam = GameObject.Find ("Main Camera").GetComponent<Camera>(); clicker = playerCam.GetComponent<playerInteract> (); // set the crystal light off initally this.light.enabled = false; }
// Use this for initialization // Finds the playerInteract script attached to the player camera // Sets the animation to only run once void Start () { thePlayer = null; open = false; scriptFind = GameObject.Find ("Main Camera").GetComponent<Camera>(); keyFind = scriptFind.GetComponent<playerInteract>(); keyHold = false; this.animation ["cabinDoorAnim"].wrapMode = WrapMode.ClampForever; }
// Use this for initialization // Finds the playerInteract script attached to the player camera // Sets the animation to only run once void Start () { thePlayer = null; activate = false; scriptFind = GameObject.Find ("Main Camera").GetComponent<Camera>(); holding = scriptFind.GetComponent<playerInteract>(); carry = false; holdStone = null; door = GameObject.Find ("Level 1 Door"); gear = GameObject.Find ("3_gears"); stone = GameObject.Find ("Orng_Stone_PlcHldr"); door.animation ["caveDoorAnim"].wrapMode = WrapMode.ClampForever; gear.animation ["gearsAnim"].wrapMode = WrapMode.ClampForever; stone.animation ["oStoneInsert"].speed = 0.5f; stone.animation ["oStoneInsert"].wrapMode = WrapMode.ClampForever; }
// Use this for initialization void Start () { playerController = null; unlock = false; findHolding = GameObject.Find ("Main Camera").GetComponent<Camera>();; holder = findHolding.GetComponent<playerInteract>(); holding = false; curHold = null; bottom = GameObject.Find ("stairsBottomHalf"); top = GameObject.Find ("stairsTopHalf"); oStone = GameObject.Find ("Orng_Stone_PlcHldr2"); bStone = GameObject.Find ("Blue_Stone_PlcHldr"); bottom.animation ["Lvl2Exit1"].wrapMode = WrapMode.ClampForever; top.animation ["Lvl2Exit2"].wrapMode = WrapMode.ClampForever; oStone.animation ["oStoneInsert2"].wrapMode = WrapMode.ClampForever; bStone.animation ["bStoneInsert"].wrapMode = WrapMode.ClampForever; }
// Use this for initialization void Start () { // initialize all objects and scripts cam = GameObject.Find ("Main Camera").GetComponent<Camera>(); holder = cam.GetComponent<playerInteract>(); thePlayer = null; caveOpened = GameObject.Find ("Orange_slot").GetComponent<OpenLvl2> (); stairsRaised1 = GameObject.Find ("Orange_slot_lvl2").GetComponent<OpenLvl3> (); stairsRaised2 = GameObject.Find ("Blue_slot").GetComponent<OpenLvl3> (); inCave = false; pastCave = false; // default checkpoint xpos = -0.04f; ypos = 45; zpos = 9.8f; }