public void Initialize(RevampManager revampManager) { base.ChangeImmediateContentPosition(ContentDirection.Hell); mRevampManager = revampManager; RevampRecipeModel[] array = mRevampManager.GetRecipes().ToArray(); List <RevampRecipeScrollUIModel> list = new List <RevampRecipeScrollUIModel>(); RevampRecipeModel[] array2 = array; foreach (RevampRecipeModel revampRecipeModel in array2) { bool clickable = 0 < mRevampManager.GetSlotitemList(revampRecipeModel.RecipeId).Length; RevampRecipeScrollUIModel item = new RevampRecipeScrollUIModel(revampRecipeModel, clickable); list.Add(item); } Initialize(list.ToArray()); }
private KeyControl ShowUIRevampRecipeList(int firstFocusIndex) { mRevampRecipeScrollParentNew.SetActive(isActive: false); mRevampRecipeScrollParentNew.SetActive(isActive: true); _isTop = true; mRevampManager.GetRecipes(); mRevampContext = new RevampContext(); mRevampRecipeScrollParentNew.Initialize(mRevampManager); mRevampRecipeScrollParentNew.SetOnSelectedListener(OnSelectedRecipeListener); mRevampRecipeScrollParentNew.SetCamera(mCameraTouchEventCatch); KeyControl keyController = mRevampRecipeScrollParentNew.GetKeyController(); mRevampRecipeScrollParentNew.PlaySlotInAnimation(); mRevampRecipeScrollParentNew.SetOnFinishedSlotInAnimationListener(delegate { mRevampRecipeScrollParentNew.StartControl(); }); return(keyController); }
private IEnumerator Start() { yield return(new WaitForEndOfFrame()); Stopwatch stopWatch = new Stopwatch(); stopWatch.Reset(); stopWatch.Start(); _isTop = true; _isAnimation = false; SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; mAreaId = SingletonMonoBehaviour <AppInformation> .Instance.CurrentAreaID; mDeckId = SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck.Id; mRevampManager = new RevampManager(mAreaId, mDeckId); mRevampManager.GetRecipes(); InitializeAkashi(); mRevampMaterialsInfo.Initialize(mRevampManager); mAudioClip_BGM = SoundFile.LoadBGM((BGMFileInfos)206); mAudioClip_303 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 303); mAudioClip_304 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 304); mAudioClip_305 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 305); mAudioClip_308 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 308); mAudioClip_309 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 309); mAudioClip_313 = SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 313); mAudioClip_SE_021 = SoundFile.LoadSE(SEFIleInfos.SE_021); mAudioClip_SE_022 = SoundFile.LoadSE(SEFIleInfos.SE_022); mAudioClip_SE_017 = SoundFile.LoadSE(SEFIleInfos.SE_017); mAudioClip_SE_020 = SoundFile.LoadSE(SEFIleInfos.SE_020); mAudioClip_SE_002 = SoundFile.LoadSE(SEFIleInfos.SE_002); mAudioClip_SE_023 = SoundFile.LoadSE(SEFIleInfos.SE_023); int random = UnityEngine.Random.Range(0, 100); if (70 < random) { SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 301); } else { SingletonMonoBehaviour <ResourceManager> .Instance.ShipVoice.Load(0, 302); } SingletonMonoBehaviour <PortObjectManager> .Instance.OverwriteSceneObject(base.transform.gameObject); stopWatch.Stop(); for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++) { yield return(new WaitForEndOfFrame()); } KeyControl nextKeyController = ShowUIRevampRecipeList(0); SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate { SingletonMonoBehaviour <SoundManager> .Instance.SwitchBGM(this.mAudioClip_BGM); this.PlayAkashiVoice(mAudioClip_303); }); ChangeFocusKeyController(nextKeyController); mRevampMaterialsInfo.Show(); UpdateInfo(mRevampManager); }