private void Awake() { floorBlocks = GetComponent <FloorBlocks>(); mainCamera.transform.position = new Vector3( floorBlocks.LevelWidth / 2.0f, 5.5f, -2.25f); #if UNITY_IOS || UNITY_ANDROID || UNITY_WP8 || UNITY_IPHONE touchButtons.SetActive(true); #endif }
private void Start() { GameObject stageGo = GameObject.FindGameObjectWithTag("Stage"); raiseCubes = stageGo.GetComponent <RaiseCubes>(); floorBlocks = stageGo.GetComponent <FloorBlocks>(); playerController = GetComponent <PlayerController>(); endPuzzleCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <PuzzleCamera>(); }
private void Start() { floorBlocks = GameObject.FindGameObjectWithTag("Stage").GetComponent <FloorBlocks>(); moveToPos = transform.position; lookAtRot = transform.rotation; transform.rotation = Quaternion.Euler(new Vector3(-42f, gameObject.transform.rotation.eulerAngles.y, gameObject.transform.rotation.eulerAngles.z)); StoreOriginalTransfrom(); stageStartRot = true; startTime = Time.time; moveTime = 2f; }
private void Start() { GameObject stageGo = GameObject.FindGameObjectWithTag("Stage"); raiseCubes = stageGo.GetComponent <RaiseCubes>(); stage = stageGo.GetComponent <Stage>(); if (stage == null && stageGo.GetComponent <DemoStageController>() != null) { demoStage = true; } floorBlocks = stageGo.GetComponent <FloorBlocks>(); rotatingCubes = stageGo.GetComponent <RotatingCubes>(); pause = stageGo.GetComponent <Pause>(); characterScale = characterContainer.transform.localScale; characterPosition = characterContainer.transform.position; }