// Use this for initialization void Start() { if(!LoadManager.Instance.alreadyLoaded) ProfileManager.Instance.CreateTestProfile(); if(!LoadManager.Instance.alreadyLoaded) TextManager.Instance.LoadTextFile(); if(!LoadManager.Instance.alreadyLoaded) LoadManager.Instance.Loading(); gs = GetComponent<GeneralScriptLAN>(); popin = false; popout = false; activeModule = true; numberPack = 0; nextnumberPack = 0; packs = new Dictionary<GameObject, string>(); var tempPack = new Dictionary<GameObject, string>(); var position = 0; var thePackPosition = -1; foreach(var el in LoadManager.Instance.ListSong().Keys){ var thego = (GameObject) Instantiate(miniCubePack, new Vector3(0f, 13f, 20f), miniCubePack.transform.rotation); thego.SetActive(true); if(LoadManager.Instance.ListTexture().ContainsKey(el)) thego.renderer.material.mainTexture = LoadManager.Instance.ListTexture()[el]; tempPack.Add(thego, el); if(el == DataManager.Instance.packSelected) thePackPosition = position; position++; } if(DataManager.Instance.packSelected != "" && thePackPosition != -1){ for(int i=thePackPosition;i<tempPack.Count;i++){ packs.Add(tempPack.ElementAt(i).Key, tempPack.ElementAt(i).Value); } for(int i=0;i<thePackPosition;i++){ packs.Add(tempPack.ElementAt(i).Key, tempPack.ElementAt(i).Value); } }else{ for(int i=0;i<tempPack.Count;i++){ packs.Add(tempPack.ElementAt(i).Key, tempPack.ElementAt(i).Value); } } organiseCube(0); fadeAlpha = 0f; }
// Use this for initialization void Start() { gs = GetComponent<GeneralScriptLAN>(); error = GetComponent<ErrorLabel>(); popin = false; popout = false; activeModule = true; posBaseCameraSong = camerasong.transform.position; startnumber = 0; currentstartnumber = 0; customSearch = false; packLocked = "null"; songCubePack = new Dictionary<GameObject, string>(); createCubeSong(); locked = false; search = ""; searchOldValue = ""; songList = new Dictionary<string, Dictionary<Difficulty, Song>>(); activeSongList(gs.getZonePack().getActivePack()); if(DataManager.Instance.mousePosition != -1){ startnumber = DataManager.Instance.mousePosition; currentstartnumber = startnumber; } }
// Use this for initialization void Start() { gs = GetComponent<GeneralScriptLAN>(); activeModule = false; speedmodok = true; rateok = true; animok = true; matCache = cacheOption.renderer.material; fadeAlphaOptionTitle = 1f; stateLoading = new bool[7]; displaySelected = new bool[DataManager.Instance.aDisplay.Length]; for(int i=0;i<stateLoading.Length-1;i++) stateLoading[i] = false; for(int j=0;j<DataManager.Instance.aDisplay.Length;j++) displaySelected[j] = DataManager.Instance.songSelected != null ? DataManager.Instance.displaySelected[j] : false; DataManager.Instance.BPMEntryMode = ProfileManager.Instance.currentProfile.inBPMMode; difficultySelected = 0; scoreJudgeSelected = DataManager.Instance.songSelected != null ? DataManager.Instance.scoreJudgeSelected : Judge.NORMAL; hitJudgeSelected = DataManager.Instance.songSelected != null ? DataManager.Instance.hitJudgeSelected : Judge.NORMAL; lifeJudgeSelected = DataManager.Instance.songSelected != null ? DataManager.Instance.lifeJudgeSelected : Judge.NORMAL; skinSelected = DataManager.Instance.songSelected != null ? DataManager.Instance.skinSelected : 0; alphaText = new float[stateLoading.Length]; isFading = new bool[stateLoading.Length]; alphaDisplay = new float[DataManager.Instance.aDisplay.Length]; isFadingDisplay = new bool[DataManager.Instance.aDisplay.Length]; offsetFading = new float[stateLoading.Length]; offsetPreviousFading = new float[stateLoading.Length]; for(int i=0;i<stateLoading.Length;i++) offsetFading[i] = 0f; for(int i=0;i<stateLoading.Length;i++) offsetPreviousFading[i] = 0f; for(int i=0;i<stateLoading.Length;i++) isFading[i] = false; for(int i=0;i<stateLoading.Length;i++) alphaText[i] = 1f; for(int i=0;i<stateLoading.Length;i++) isFadingDisplay[i] = false; for(int i=0;i<stateLoading.Length;i++) alphaDisplay[i] = displaySelected[i] ? 1f : 0f; if(DataManager.Instance.quickMode){ timeOption = 0.02f; } }
// Use this for initialization void Start() { gs = GetComponent<GeneralScriptLAN>(); activeModule = true; diffSelected = new Dictionary<Difficulty, GameObject>(); diffActiveColor = new Dictionary<Difficulty, Color>(); PSDiff = new Dictionary<int, ParticleSystem>(); RayDiff = new Dictionary<int, GameObject>(); diffSelected.Add(Difficulty.BEGINNER, GameObject.Find("DifficultyB")); diffSelected.Add(Difficulty.EASY, GameObject.Find("DifficultyEs")); diffSelected.Add(Difficulty.MEDIUM, GameObject.Find("DifficultyM")); diffSelected.Add(Difficulty.HARD, GameObject.Find("DifficultyH")); diffSelected.Add(Difficulty.EXPERT, GameObject.Find("DifficultyEx")); diffSelected.Add(Difficulty.EDIT, GameObject.Find("DifficultyEd")); basePosXDifficulty = diffSelected.First().Value.transform.position.x; basePosDifficulty = new float[6]; for(int i=0; i<6; i++) { basePosDifficulty[i] = diffSelected.ElementAt(i).Value.transform.position.y; } diffActiveColor.Add(Difficulty.BEGINNER, diffSelected[Difficulty.BEGINNER].transform.GetChild(0).renderer.material.GetColor("_TintColor")); diffActiveColor.Add(Difficulty.EASY, diffSelected[Difficulty.EASY].transform.GetChild(0).renderer.material.GetColor("_TintColor")); diffActiveColor.Add(Difficulty.MEDIUM, diffSelected[Difficulty.MEDIUM].transform.GetChild(0).renderer.material.GetColor("_TintColor")); diffActiveColor.Add(Difficulty.HARD, diffSelected[Difficulty.HARD].transform.GetChild(0).renderer.material.GetColor("_TintColor")); diffActiveColor.Add(Difficulty.EXPERT, diffSelected[Difficulty.EXPERT].transform.GetChild(0).renderer.material.GetColor("_TintColor")); diffActiveColor.Add(Difficulty.EDIT, diffSelected[Difficulty.EDIT].transform.GetChild(0).renderer.material.GetColor("_TintColor")); for(int i=0; i<6;i++){ PSDiff.Add(i, (ParticleSystem) PSCore.transform.FindChild(""+i).particleSystem); } for(int i=0; i<6;i++){ RayDiff.Add(i, (GameObject) RayCore.transform.FindChild(""+i).gameObject); } desactiveDiff(); gs.refreshBanner(); diffNumber = new int[6]; for(int i=0;i<6; i++){ diffNumber[i] = 0; } graph.enabled = false; actualySelected = DataManager.Instance.difficultySelected; trulySelected = DataManager.Instance.difficultySelected; onHoverDifficulty = Difficulty.NONE; }