// Use this for initialization void Start() { audios = GetComponents <AudioSource>(); currentStage = new FloorMapSetting(); hero = GameObject.Find("Hero").GetComponent <Player>(); resultDialog = GameObject.Find("Result"); temp_Result_Score = GameObject.Find("T_Result_Score"); temp_Result_Enemy = GameObject.Find("T_Result_Enemy"); temp_Result_Time = GameObject.Find("T_Result_Time"); temp_Result_Final = GameObject.Find("T_Result_Final"); resultDialog.SetActive(false); middleGround = GameObject.Find("MiddleGround"); cameraArray = new GameObject[3]; cameraArray[0] = GameObject.Find("CameraLock"); cameraArray[1] = GameObject.Find("CameraFollow"); cameraArray[2] = GameObject.Find("CameraTween"); SetCameraFollow(true); currentCamera = 1; nextLockHeight = -1; time = 300; }
// Use this for initialization void Start() { //Load Floor map settings fms = new FloorMapSetting(); builtheight = 0; shownheight = /*GameObject.Find("Hero").transform.position.z*/ 0 + shownOffset; floorlist = new List <Object>(); floorlist.Add(Instantiate(prefabsfloors[0], new Vector3(0, -2, -5), Quaternion.identity, floorcollection)); pBlock = 0; }
// Use this for initialization void Start() { currentStage = new FloorMapSetting(); }