private void Awake() { UIItemListChild[] array = mItemListChildren; foreach (UIItemListChild uIItemListChild in array) { uIItemListChild.SetOnTouchListener(OnTouchListChild); } mAudioClip_SE_001 = SoundFile.LoadSE(SEFIleInfos.SE_001); mAudioClip_SE_013 = SoundFile.LoadSE(SEFIleInfos.SE_013); }
private void Start() { this.mAudioClip_CommonEnter1 = SoundFile.LoadSE(SEFIleInfos.CommonEnter1); this.mAudioClip_CommonCancel1 = SoundFile.LoadSE(SEFIleInfos.CommonCancel1); this.mAudioClip_CommonCursolMove = SoundFile.LoadSE(SEFIleInfos.CommonCursolMove); this.mAudioClip_CommonEnter2 = SoundFile.LoadSE(SEFIleInfos.CommonEnter2); this.mUIInteriorChangeFurnitureSelector.SetOnSelectFurnitureKindListener(new Action <FurnitureKinds>(this.OnSelectFurnitureKindListener)); this.mUIInteriorChangeFurnitureSelector.SetOnSelectCancelListener(new Action(this.OnSelectCancelListener)); this.mUIInteriorFurniturePreviewWaiter.SetOnBackListener(new Action(this.OnFinishedPreview)); }
private void Awake() { UIItemListChild[] array = this.mItemListChildren; for (int i = 0; i < array.Length; i++) { UIItemListChild uIItemListChild = array[i]; uIItemListChild.SetOnTouchListener(new Action <UIItemListChild>(this.OnTouchListChild)); } this.mAudioClip_SE_001 = SoundFile.LoadSE(SEFIleInfos.SE_001); this.mAudioClip_SE_013 = SoundFile.LoadSE(SEFIleInfos.SE_013); }
private void Awake() { this.mButtonManager = base.GetComponent <UIButtonManager>(); this.mPanelThis = base.GetComponent <UIPanel>(); this.mButtonManager.IndexChangeAct = delegate { UIPortMenuButton uIPortMenuButton = this.mUIPortMenuButtons_Current[this.mButtonManager.nowForcusIndex]; bool isSelectable = this.mUIPortMenuButtons_Current[this.mButtonManager.nowForcusIndex].IsSelectable; bool flag = this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.MainMenu || this.mStateManager.CurrentState == UserInterfacePortMenuManager.State.SubMenu; bool flag2 = this.mUIPortMenuButton_Current != null && this.mUIPortMenuButton_Current.Equals(uIPortMenuButton); bool flag3 = this.IsControllable(); if (flag && isSelectable && !flag2 && flag3) { this.ChangeFocusButton(uIPortMenuButton); } }; this.mAudioClip_MainMenuOnMouse = SoundFile.LoadSE(SEFIleInfos.MainMenuOnMouse); }
private void Awake() { mButtonManager = GetComponent <UIButtonManager>(); mPanelThis = GetComponent <UIPanel>(); mButtonManager.IndexChangeAct = delegate { UIPortMenuButton uIPortMenuButton = mUIPortMenuButtons_Current[mButtonManager.nowForcusIndex]; bool isSelectable = mUIPortMenuButtons_Current[mButtonManager.nowForcusIndex].IsSelectable; bool flag = mStateManager.CurrentState == State.MainMenu || mStateManager.CurrentState == State.SubMenu; bool flag2 = mUIPortMenuButton_Current != null && mUIPortMenuButton_Current.Equals(uIPortMenuButton); bool flag3 = IsControllable(); if (flag && isSelectable && !flag2 && flag3) { ChangeFocusButton(uIPortMenuButton); } }; mAudioClip_MainMenuOnMouse = SoundFile.LoadSE(SEFIleInfos.MainMenuOnMouse); }
public IEnumerator StartBattleJudge() { AudioSource source = SingletonMonoBehaviour <SoundManager> .Instance.seSourceObserver[5].source; AudioClip clip = SoundFile.LoadSE(GetFanfare()); float waitTime = clip.length / 3f; if (!_isBattleCut) { _uiBackground.Show(0.5f, null); } yield return(new WaitForSeconds(0.5f)); ShowHPGauge(_listHPGauges[0]); ShowHPGauge(_listHPGauges[1]); yield return(new WaitForSeconds(0.5f)); _listHPGauges.ForEach(delegate(BtlCut_UICircleHPGauge x) { x.PlayNonColor().setDelay(0.5f); }); if (_iWinRank == BattleWinRankKinds.S) { TrophyUtil.Unlock_At_BattleResultOnlySally(); ShowCongratulation(); } _uiJudgeLabel.SetActive(isActive: true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage); yield return(new WaitForSeconds(0.3f)); _traRankBase.SetActive(isActive: true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage); yield return(new WaitForSeconds(0.8f)); _uiRankTex.SetActive(isActive: true); KCV.Utils.SoundUtils.PlaySE(SEFIleInfos.BattleNightMessage); source.PlayOneShot(clip); yield return(new WaitForSeconds(waitTime)); Hide(); yield return(new WaitForSeconds(0.5f)); }
private IEnumerator Start() { UserInterfacePortManager.ReleaseUtils.OverwriteCheck(); mStartAt = GetStartAt(); Stopwatch stopWatch = new Stopwatch(); stopWatch.Reset(); stopWatch.Start(); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; mKeyController = new KeyControl(); mAudioClip_SE002 = SoundFile.LoadSE(SEFIleInfos.SE_002); mAudioClip_CommonCancel1 = SoundFile.LoadSE(SEFIleInfos.CommonCancel1); mUIItemListManager.SetOnBackListener(OnItemListBack); mUIItemListManager.SetOnSwitchItemStoreListener(OnSwitchToItemStore); mUIItemListManager.SetKeyController(null); mUIItemStoreManager.SetOnBackListener(OnItemStoreBackListener); mUIItemStoreManager.SetOnSwitchItemListListener(OnSwitchToItemList); mUIItemStoreManager.SetKeyController(null); mUIItemAkashi.SetOnHiddenCallBack(OnAkashiHidenListener); int bgmId = 101; switch (mStartAt) { case StartAt.ItemList: mUIItemListManager.SetActive(isActive: true); mUIItemStoreManager.SetActive(isActive: false); mTransform_SwitchViewRoot.transform.localPosition = new Vector3(0f, 0f, 0f); bgmId = itemListManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); mUIItemListManager.Initialize(itemListManager); if (SingletonMonoBehaviour <UIPortFrame> .exist()) { SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(itemListManager); } break; case StartAt.ItemStore: mUIItemListManager.SetActive(isActive: false); mUIItemStoreManager.SetActive(isActive: true); mTransform_SwitchViewRoot.transform.localPosition = new Vector3(-960f, 0f, 0f); bgmId = itemStoreManager.UserInfo.GetPortBGMId(SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeckID); mUIItemStoreManager.Initialize(itemStoreManager); if (SingletonMonoBehaviour <UIPortFrame> .exist()) { SingletonMonoBehaviour <UIPortFrame> .Instance.CircleUpdateInfo(itemStoreManager); } break; } mAudioClip_SceneBGM = SoundFile.LoadBGM((BGMFileInfos)bgmId); stopWatch.Stop(); if (RetentionData.GetData() != null) { RetentionData.GetData().Clear(); } for (int frame = 0; frame < stopWatch.Elapsed.Milliseconds / 60; frame++) { yield return(new WaitForEndOfFrame()); } SingletonMonoBehaviour <PortObjectManager> .Instance.PortTransition.EndTransition(delegate { SoundUtils.PlayBGM(this.mAudioClip_SceneBGM, isLoop: true); SingletonMonoBehaviour <UIShortCutMenu> .Instance.IsInputEnable = false; this.mUIItemAkashi.SetKeyController(this.mKeyController); this.mUIItemAkashi.Show(); this.mUIItemAkashi.SetClickable(clickable: true); this.DelayAction(0.2f, delegate { ShipUtils.PlayPortVoice(4); }); this.ChangeState(State.Akashi, popStack: false); }); }
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); }
public AudioSource PlayOneShotSE(SEFIleInfos info) { return(PlaySE(SoundFile.LoadSE(info), isOneShot: true, null)); }
public AudioSource PlaySE(SEFIleInfos file, Action onFinished) { return(PlaySE(SoundFile.LoadSE(file), isOneShot: false, onFinished)); }
public AudioSource PlaySE(SEFIleInfos file, Action onFinished) { return(this.PlaySE(SoundFile.LoadSE(file), false, onFinished)); }
public static AudioClip PreloadSEFile(SEFIleInfos iInfos) { return(SoundFile.LoadSE(iInfos)); }