private void EndEject(int resultCode)
 {
     if (resultCode == 1)
     {
         this.SetBarrier(true);
         int num = this.selectedChipParameter.ConvertButtonIndex();
         this.chipSphereIconButtons[num].SetupEmpty();
         this.RefreshItemCountColor();
         this.RefreshStatus();
         this.RefreshItemNumbers();
         this.RefreshYellowLines();
         string texname = string.Format("ChipThumbnail/{0}", "eject_slot_01");
         foreach (UITexture uiTex in this.ejectItemCutinTextures)
         {
             NGUIUtil.ChangeUITextureFromFileASync(uiTex, texname, false, null);
         }
         this.ejectItemCutinGO.transform.localPosition = this.chipButtonsPositions[num];
         this.ejectItemCutinGO.SetActive(false);
         this.ejectItemCutinGO.SetActive(true);
         this.ejectAnimationTrigger.OnFinishAnimation = delegate(string str)
         {
             this.SetBarrier(false);
             this.isLoopOff = true;
         };
         SoundMng.Instance().TryPlaySE("SEInternal/Common/se_108", 0f, false, true, null, -1);
         this.chipSphereIconButtons[num].OnTouch();
         RestrictionInput.EndLoad();
     }
     else
     {
         ChipTools.CheckResultCode(resultCode);
         this.DispErrorModal(resultCode);
     }
 }
 private void StopCountUpSound()
 {
     if (SoundMng.Instance().IsPlayingSE("SEInternal/Common/se_102"))
     {
         SoundMng.Instance().TryStopSE("SEInternal/Common/se_102", 0.2f, null);
     }
 }
    private void UpdateAnimationTicketIcon()
    {
        if (!this.StartEffect)
        {
            return;
        }
        int num = this.curTicketFrameCT % this.showChipInterval;

        if ((num == 0 || this.isOnTapped) && this.curTicketInitNUM < CMD_TicketGashaResult.UserDungeonTicketList.Length)
        {
            if (this.curTicketInitNUM == 0)
            {
                GUICollider.EnableAllCollider("=================================== CMD_TicketGashaResult::UpdateShowTicketIcons");
            }
            this.ticketEffectList[this.curTicketInitNUM].Play();
            this.curTicketInitNUM++;
            SoundMng.Instance().PlaySE("SEInternal/Farm/se_221", 0f, false, true, null, -1, 1f);
            if (CMD_TicketGashaResult.UserDungeonTicketList.Length == this.curTicketInitNUM)
            {
                this.StartEffect = false;
                this.startButton.gameObject.SetActive(true);
                if (CMD_TicketGashaResult.RewardsData != null)
                {
                    GUICollider.DisableAllCollider("=================================== CMD_TicketGashaResult::ICON");
                    AppCoroutine.Start(this.GashaRewardSet(0.7f), true);
                }
            }
        }
        this.curTicketFrameCT++;
    }
示例#4
0
        private void SetGashaCutScene(GameWebAPI.RespDataGA_ExecTicket gashaResult, int playCount)
        {
            string  bgmFileName = (playCount != 1) ? "bgm_205" : "bgm_204";
            UIPanel uipanel     = GUIMain.GetUIPanel();
            CutsceneDataTicketGasha cutsceneDataTicketGasha = new CutsceneDataTicketGasha
            {
                path           = "Cutscenes/ticketGacha",
                gashaResult    = gashaResult.userDungeonTicketList,
                bgmFileName    = bgmFileName,
                backgroundSize = uipanel.GetWindowSize()
            };

            cutsceneDataTicketGasha.endCallback = delegate(RenderTexture renderTexture)
            {
                UITexture txBG = CMD_TicketGashaResult.instance.txBG;
                txBG.mainTexture = renderTexture;
                txBG.width       = renderTexture.width;
                txBG.height      = renderTexture.height;
                CutSceneMain.FadeReqCutSceneEnd();
                SoundMng.Instance().PlayGameBGM("bgm_202");
            };
            Loading.Invisible();
            CutsceneDataBase cutsceneData = cutsceneDataTicketGasha;

            if (ExecGashaTicket.< > f__mg$cache0 == null)
            {
                ExecGashaTicket.< > f__mg$cache0 = new Action(CMD_TicketGashaResult.CreateDialog);
            }
            CutSceneMain.FadeReqCutScene(cutsceneData, ExecGashaTicket.< > f__mg$cache0, null, new Action <int>(this.OnShowedGashaResultDialog), 0.5f, 0.5f);
        }
 protected override void Awake()
 {
     base.Awake();
     this.defaultBgmVolume          = SoundMng.Instance().VolumeBGM;
     AlertManager.alertOpenedAction = new Action(this.alertOpenedAction);
     CMDWebWindow.instance          = this;
 }
 public override void ClosePanel(bool animation = true)
 {
     if (this.isGoingBattle)
     {
         base.SetForceReturnValue(0);
         if (CMD_QuestSelect.instance != null)
         {
             CMD_QuestSelect.instance.SetForceReturnValue(0);
         }
         FarmCameraControlForCMD.On();
         base.ClosePanel(false);
         if (CMD_QuestSelect.instance != null)
         {
             CMD_QuestSelect.instance.ClosePanel(false);
         }
     }
     else
     {
         SoundMng.Instance().PlayGameBGM("bgm_201");
         base.SetForceReturnValue(6);
         CMD_QuestTOP.AreaData = null;
         FarmCameraControlForCMD.On();
         base.ClosePanel(animation);
     }
     if (this.csSelectPanelA_StageL != null)
     {
         this.csSelectPanelA_StageL.FadeOutAllListParts(null, false);
         this.csSelectPanelA_StageL.SetHideScrollBarAllWays(true);
     }
     if (this.csSelectPanelS_DungeonR != null)
     {
         this.csSelectPanelS_DungeonR.FadeOutAllListParts(null, false);
         this.csSelectPanelS_DungeonR.SetHideScrollBarAllWays(true);
     }
 }
示例#7
0
    private void OpenDigiviceButton()
    {
        Vector2 zero = Vector2.zero;
        Color   c    = new Color(1f, 1f, 1f, 1f);
        EfcCont component;

        for (int i = 0; i < this.digiviceChildButtonList.Count; i++)
        {
            GameObject gameObject = this.digiviceChildButtonList[i];
            component = gameObject.GetComponent <EfcCont>();
            GUICollider component2 = gameObject.GetComponent <GUICollider>();
            zero.x = component2.GetOriginalPos().x;
            zero.y = component2.GetOriginalPos().y;
            component.MoveTo(zero, 0.2f, null, iTween.EaseType.spring, 0f);
            zero.x = 1f;
            zero.y = 1f;
            component.ScaleTo(zero, 0.2f, null, iTween.EaseType.spring, 0f);
            component.ColorTo(c, 0.2f, null, iTween.EaseType.spring, 0f);
            Transform transform = gameObject.transform.Find("Campaign");
            if (transform != null)
            {
                component = transform.GetComponent <EfcCont>();
                component.ScaleTo(zero, 0.2f, null, iTween.EaseType.linear, 0f);
            }
        }
        this.digiviceSlotBackground.gameObject.SetActive(true);
        component = this.digiviceSlotBackground;
        component.ScaleTo(zero, 0.2f, new Action <int>(this.FinishOpenDigiviceButtonAnimation), iTween.EaseType.spring, 0f);
        component.ColorTo(c, 0.2f, null, iTween.EaseType.spring, 0f);
        SoundMng.Instance().TryPlaySE("SEInternal/Farm/se_205", 0f, false, true, null, -1);
        this.ResetFarmWork();
    }
示例#8
0
    private void CloseDigiviceButton(bool isPlaySE)
    {
        Vector2 zero = Vector2.zero;
        Color   c    = new Color(1f, 1f, 1f, 0f);
        EfcCont component;

        for (int i = 0; i < this.digiviceChildButtonList.Count; i++)
        {
            GameObject gameObject = this.digiviceChildButtonList[i];
            component = gameObject.GetComponent <EfcCont>();
            component.MoveTo(zero, 0.2f, null, iTween.EaseType.linear, 0f);
            component.ScaleTo(zero, 0.2f, null, iTween.EaseType.linear, 0f);
            component.ColorTo(c, 0.2f, null, iTween.EaseType.linear, 0f);
            Transform transform = gameObject.transform.Find("Campaign");
            if (transform != null)
            {
                component = transform.GetComponent <EfcCont>();
                component.ScaleTo(zero, 0.2f, null, iTween.EaseType.linear, 0f);
            }
        }
        component = this.digiviceSlotBackground;
        component.ScaleTo(zero, 0.2f, new Action <int>(this.FinishCloseDigiviceButtonAnimation), iTween.EaseType.spring, 0f);
        component.ColorTo(c, 0.2f, null, iTween.EaseType.spring, 0f);
        if (isPlaySE)
        {
            SoundMng soundMng = SoundMng.Instance();
            if (soundMng != null)
            {
                soundMng.TryPlaySE("SEInternal/Farm/se_206", 0f, false, true, null, -1);
            }
        }
    }
 public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
 {
     SoundMng.Instance().PlayGameBGM("bgm_303");
     if (GooglePlayGamesTool.Instance != null)
     {
         GooglePlayGamesTool.Instance.ClearQuest();
     }
     GameWebAPI.RespDataWD_DungeonStart respDataWD_DungeonStart = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonStart;
     if (respDataWD_DungeonStart != null)
     {
         this.clearDungeonID = respDataWD_DungeonStart.worldDungeonId;
     }
     GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo;
     if (respData_WorldMultiStartInfo != null)
     {
         this.clearDungeonID = respData_WorldMultiStartInfo.worldDungeonId;
     }
     this.results.Add(CMD_BattleResult.State.DropItem, this.dropItemResult);
     this.results.Add(CMD_BattleResult.State.Experience, this.experienceResult);
     foreach (ResultBase resultBase in this.results.Values)
     {
         resultBase.gameObject.SetActive(true);
         resultBase.Init();
         resultBase.gameObject.SetActive(false);
     }
     this.ChangeState(CMD_BattleResult.State.DropItem);
     base.Show(f, sizeX, sizeY, aT);
 }
示例#10
0
 private static void StopCommonSE(int num)
 {
     if (SoundMng.Instance().IsPlayingSE("SEInternal/Common/" + SoundPlayer.seCommonPathList[num]))
     {
         SoundMng.Instance().StopSE("SEInternal/Common/" + SoundPlayer.seCommonPathList[num], 0f, null);
     }
 }
示例#11
0
 public void SetupDropIcon()
 {
     if (this.data.dropBoxType == GUIListDropItemParts.BoxType.NORMAL)
     {
         this.boxIcons.spriteName = "Common02_Icon_DropB";
     }
     else if (this.data.dropBoxType == GUIListDropItemParts.BoxType.RARE)
     {
         this.boxIcons.spriteName = "Common02_Icon_DropG";
     }
     else
     {
         global::Debug.LogError("boxType is is not valid.");
         this.boxIcons.spriteName = "Common02_Icon_DropB";
     }
     NGUITools.SetActiveSelf(this.boxIcons.gameObject, true);
     SoundMng.Instance().TryPlaySE("SEInternal/Common/se_302", 0f, false, true, null, -1);
     if (this.data.dropType == GUIListDropItemParts.DropType.LuckMulti)
     {
         this.goLuckPlayerIcons.SetActive(true);
     }
     this.ownerRewardIcon.alpha   = 1f;
     this.multiIcons.alpha        = 1f;
     this.luckIcons.alpha         = 1f;
     this.challengeIcon.alpha     = 1f;
     this.eventChipDropIcon.alpha = 1f;
     this.dropNumLabel.alpha      = 0f;
 }
 private IEnumerator PlayAnimator_(PartsUpperCutinController.AnimeType PlayType, Action OnPlayed)
 {
     this.cutinAnimator.enabled = true;
     this.cutinAnimator.Play(PlayType.ToString());
     SoundMng.Instance().TryPlaySE("SEInternal/CutScene/se_214", 0f, false, true, null, -1);
     if (this.cutinAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime > 1f)
     {
         while (this.cutinAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime > 1f)
         {
             yield return(null);
         }
     }
     while (this.cutinAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime < 1f)
     {
         yield return(null);
     }
     this.cutinAnimator.StopPlayback();
     this.cutinAnimator.enabled = false;
     this.UnLock();
     if (OnPlayed != null)
     {
         OnPlayed();
     }
     yield break;
 }
示例#13
0
    private void OnExecute(bool IsCountUp, int VariationValue = 1)
    {
        int maxExchangeNum = this.GetMaxExchangeNum();

        if (IsCountUp && maxExchangeNum - VariationValue < 0 && this.updateExCT != 0)
        {
            VariationValue = maxExchangeNum;
        }
        if (this.updateExCT > 1)
        {
            SoundMng.Instance().PlaySE("SEInternal/Common/se_107", 0f, false, true, null, -1, 1f);
        }
        int i = VariationValue;

        while (i > 0)
        {
            i--;
            if (IsCountUp)
            {
                this.numCounter++;
            }
            else
            {
                this.numCounter--;
            }
            if (this.numCounter == 0)
            {
                i = 0;
            }
            if (this.numCounter > maxExchangeNum)
            {
                this.numCounter = maxExchangeNum;
            }
            else if (this.numCounter < 1)
            {
                this.numCounter = 1;
            }
        }
        this.numCountLabel.text = this.numCounter.ToString();
        if (this.numCounter >= maxExchangeNum)
        {
            this.numUpButtonCollider.activeCollider = false;
            this.numUpButtonSprite.spriteName       = "Common02_Meal_UP_G";
        }
        else
        {
            this.numUpButtonCollider.activeCollider = true;
            this.numUpButtonSprite.spriteName       = "Common02_Meal_UP";
        }
        if (this.numCounter == 1)
        {
            this.numDownButtonCollider.activeCollider = false;
            this.numDownButtonSprite.spriteName       = "Common02_Meal_Down_G";
        }
        else if (this.numCounter > 1)
        {
            this.numDownButtonCollider.activeCollider = true;
            this.numDownButtonSprite.spriteName       = "Common02_Meal_Down";
        }
    }
示例#14
0
    private void IntDLG(Action <int> f, float sizeX, float sizeY, float aT)
    {
        base.ShowDLG();
        GUICollider.DisableAllCollider("CMD_QuestTOP");
        SoundMng.Instance().PlayGameBGM("bgm_301");
        base.PartsTitle.SetTitle(StringMaster.GetString("QuestTitle"));
        this.SetCommonUI_A_Stage();
        this.SetCommonUI_S_Dungeon();
        this.InitQuest();
        this.userStamina.SetMode(UserStamina.Mode.QUEST);
        this.userStamina.RefreshParams();
        base.Show(f, sizeX, sizeY, aT);
        string bgpath = this.GetBGPath();

        if (!string.IsNullOrEmpty(bgpath))
        {
            AppCoroutine.Start(this.DownloadBannerTexture(bgpath), false);
        }
        if (this.worldStageData.Count > 0)
        {
            string anyTimeQuestTopTutorialFileName = this.GetAnyTimeQuestTopTutorialFileName(this.worldStageData[0].worldStageM.worldAreaId);
            if (!string.IsNullOrEmpty(anyTimeQuestTopTutorialFileName))
            {
                base.SetTutorialAnyTime(anyTimeQuestTopTutorialFileName);
            }
        }
    }
示例#15
0
        public void SkipAnimation()
        {
            AppCoroutine.Stop(this.animationTextImage, false);
            GashaAnimationCommon.PlayParticle(this.circleParticleRoot);
            this.subCamera.fieldOfView             = 30f;
            this.subCamera.transform.localPosition = new Vector3(2f, 1f, 0f);
            if (MonsterGrowStepData.IsUltimateScope(this.growStep))
            {
                this.mainCamera.backgroundColor = this.bgColorRareHigh;
                this.subCamera.backgroundColor  = this.bgColorRareHigh;
            }
            CharacterParams component = this.gashaMonster.GetComponent <CharacterParams>();

            if (!this.gashaMonster.activeSelf)
            {
                this.gashaMonster.SetActive(true);
                component.PlayAnimation(CharacterAnimationType.idle, SkillType.Attack, 0, null, null);
                CutsceneCommon.SetBillBoardCamera(this.gashaMonster, this.subCamera);
            }
            this.cameraSwitcher.SetLookAtObject(component.characterFaceCenterTarget);
            if (!SoundMng.Instance().IsPlayingSE_Ex(this.seHandle1) && !SoundMng.Instance().IsPlayingSE_Ex(this.seHandle2))
            {
                this.sound.PlaySE("SEInternal/Cutscene/se_214");
            }
        }
        public override bool RunScriptCommand()
        {
            bool result = false;
            AdventureDigimonInfo digimonInfo = ClassSingleton <AdventureSceneData> .Instance.GetDigimonInfo(this.charaId);

            if (digimonInfo != null)
            {
                CharacterParams        component  = digimonInfo.model.GetComponent <CharacterParams>();
                InvocationEffectParams component2 = digimonInfo.skillEffectList[this.uniqueSkillIndex].GetComponent <InvocationEffectParams>();
                LightColorChanger      component3 = ClassSingleton <AdventureSceneData> .Instance.adventureLight.GetComponent <LightColorChanger>();

                IEnumerator enumerator = component2.SkillInitialize(ClassSingleton <AdventureSceneData> .Instance.adventureCamera.camera3D, ClassSingleton <AdventureSceneData> .Instance.stage, component3);
                while (enumerator.MoveNext())
                {
                }
                CameraParams component4 = digimonInfo.skillCameraAnimation[this.uniqueSkillIndex].GetComponent <CameraParams>();
                string       text       = digimonInfo.skillEffectSeList[this.uniqueSkillIndex];
                if (null != component && null != component2 && null != component4 && !string.IsNullOrEmpty(text))
                {
                    component.PlayAnimation(CharacterAnimationType.attacks, SkillType.Deathblow, this.uniqueSkillIndex, null, null);
                    component2.transform.position = component.transform.position;
                    component4.transform.position = component.transform.position;
                    AppCoroutine.Start(component2.PlaySkillAnimation(component), new Action(this.OnFinishCommand), false);
                    component4.currentTargetCamera = ClassSingleton <AdventureSceneData> .Instance.adventureCamera.camera3D;
                    component4.PlayCameraAnimation(component, false, false);
                    SoundMng.Instance().TryPlaySE("SE/" + text + "/sound", 0f, false, true, null, -1);
                    base.SetContinueAnalyzeForAnimationWaitTime(this.isWaitFlag);
                    result = true;
                }
            }
            return(result);
        }
示例#17
0
 private static void StopBattleSE(int num)
 {
     if (SoundMng.Instance().IsPlayingSE("SEInternal/Battle/" + SoundPlayer.seBattlePathList[num]))
     {
         SoundMng.Instance().StopSE("SEInternal/Battle/" + SoundPlayer.seBattlePathList[num], 0f, null);
     }
 }
示例#18
0
        public static void ShowCommonDialogForMessage(Action <int> callback, string title, string info, string se = "SEInternal/Common/se_106")
        {
            CMD_Confirm cmd_Confirm = GUIMain.ShowCommonDialog(callback, "CMD_Confirm", null) as CMD_Confirm;

            cmd_Confirm.Title = title;
            cmd_Confirm.Info  = info;
            SoundMng.Instance().PlaySE(se, 0f, false, true, null, -1, 1f);
        }
 public void Open(Action <int> finishMove)
 {
     this.isShow        = true;
     this.workVector2.x = this.showPositionX;
     this.workVector2.y = base.transform.localPosition.y;
     this.moveController.MoveTo(this.workVector2, this.moveTime, finishMove, iTween.EaseType.linear, 0f);
     SoundMng.Instance().TryPlaySE("SEInternal/Common/se_103", 0f, false, true, null, -1);
 }
示例#20
0
 private void UpdateBackKeyAndroid()
 {
     if (!GUICollider.IsAllColliderDisable() && Input.GetKeyDown(KeyCode.Escape) && this._isShowed && this.mainParts.IsShow())
     {
         this.ForceHide(true);
         SoundMng.Instance().PlaySE("SEInternal/Common/se_106", 0f, false, true, null, -1, 1f);
     }
 }
 public void StopAllSE()
 {
     for (int i = 0; i < this.playSeHandleList.Count; i++)
     {
         int handle = this.playSeHandleList[i];
         SoundMng.Instance().StopSE_Ex(handle);
     }
     this.playSeHandleList.Clear();
 }
 protected override void OnStartCutscene()
 {
     if (!this.animationRoot.gameObject.activeSelf)
     {
         this.animationRoot.gameObject.SetActive(true);
         this.allSkipButton.Show();
         SoundMng.Instance().PlayGameBGM(this.bgmFileName);
     }
 }
示例#23
0
 protected virtual bool StartSelectAnimation(bool selected)
 {
     if (!selected)
     {
         base.StartCoroutine(this.PlayAnimation(FacilityAnimationID.SELECT));
         SoundMng.Instance().TryPlaySE("SEInternal/Farm/se_203", 0f, false, true, null, -1);
     }
     return(false);
 }
示例#24
0
    private IEnumerator PlayRankDown()
    {
        this.rankSprite.spriteName = MultiTools.GetPvPRankSpriteName(this.pvpResultData.colosseumRankId);
        SoundMng.Instance().PlaySE("SEInternal/Farm/se_219", 0f, false, true, null, -1, 1f);
        this.PlayRankDownEffect();
        yield return(new WaitForSeconds(1f));

        yield break;
    }
示例#25
0
        public static void StartEventStage(GameWebAPI.WD_Req_DngStart startInfo)
        {
            QuestEventInfoList.EventInfo eventInfo = ClassSingleton <QuestData> .Instance.GetEventInfo(startInfo.dungeonId);

            AdventureSceneController instance = ClassSingleton <AdventureSceneController> .Instance;
            string scriptFileName             = eventInfo.scriptFileName;

            if (QuestStart.< > f__mg$cache0 == null)
            {
                QuestStart.< > f__mg$cache0 = new Action(QuestStart.BeginEventScene);
            }
            Action beginAction = QuestStart.< > f__mg$cache0;

            if (QuestStart.< > f__mg$cache1 == null)
            {
                QuestStart.< > f__mg$cache1 = new Action(QuestStart.EndEventScene);
            }
            instance.Ready(scriptFileName, beginAction, QuestStart.< > f__mg$cache1);
            RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
            GameWebAPI.RequestWD_WorldStart requestWD_WorldStart = new GameWebAPI.RequestWD_WorldStart();
            requestWD_WorldStart.SetSendData = delegate(GameWebAPI.WD_Req_DngStart param)
            {
                param.dungeonId           = startInfo.dungeonId;
                param.deckNum             = startInfo.deckNum;
                param.userDungeonTicketId = startInfo.userDungeonTicketId;
            };
            requestWD_WorldStart.OnReceived = delegate(GameWebAPI.RespDataWD_DungeonStart response)
            {
                ClassSingleton <QuestData> .Instance.RespDataWD_DungeonStart = response;
            };
            GameWebAPI.RequestWD_WorldStart request = requestWD_WorldStart;
            AppCoroutine.Start(request.RunOneTime(delegate()
            {
                if (null != DataMng.Instance() && DataMng.Instance().WD_ReqDngResult != null)
                {
                    DataMng.Instance().WD_ReqDngResult.startId   = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonStart.startId;
                    DataMng.Instance().WD_ReqDngResult.dungeonId = startInfo.dungeonId;
                    DataMng.Instance().WD_ReqDngResult.clear     = 0;
                }
                DataMng.Instance().GetResultUtilData().last_dng_req = startInfo;
                FadeController fadeController = FadeController.Instance();
                float startAlpha = 0f;
                float endAlpha   = 1f;
                float time       = 0.5f;
                if (QuestStart.< > f__mg$cache2 == null)
                {
                    QuestStart.< > f__mg$cache2 = new Action(QuestStart.OnFinishedFadeoutEventStage);
                }
                fadeController.StartBlackFade(startAlpha, endAlpha, time, QuestStart.< > f__mg$cache2, null);
                SoundMng.Instance().StopBGM(0.5f, null);
            }, delegate(Exception noop)
            {
                RestrictionInput.EndLoad();
                CMD_QuestTOP.instance.ClosePanel(true);
            }, null), false);
        }
示例#26
0
        public void ShowLevelUpParticle(Action finishAction)
        {
            this.gaugeCoverEffectParentObject.SetActive(true);
            this.levelUpAnimtion.Play("LevelUp");
            EffectAnimatorEventTime component = this.levelUpAnimtion.GetComponent <EffectAnimatorEventTime>();

            component.SetEvent(0, finishAction);
            component.SetEvent(1, new Action(this.OnFinalize));
            SoundMng.Instance().TryPlaySE("SEInternal/Common/se_101", 0f, false, true, null, -1);
        }
 private void PlayLevelUpSE(BattleResultDigimonInfo[] growDigimonInfos)
 {
     if (growDigimonInfos.Length <= this.seHandles.Count)
     {
         int num = this.seHandles.First <int>();
         SoundMng.Instance().StopSE_Ex(num);
         this.seHandles.Remove(num);
     }
     SoundMng.Instance().TryPlaySE("SEInternal/Common/se_101", 0f, false, true, null, -1);
 }
        public int PlaySE(string filePath)
        {
            int num = SoundMng.Instance().PlaySE_Ex(filePath);

            if (0 <= num)
            {
                this.playSeHandleList.Add(num);
            }
            return(num);
        }
示例#29
0
    // Use this for initialization
    void Start()
    {
        rigid = gameObject.GetComponent <Rigidbody2D>();
        anim  = gameObject.GetComponent <Animator>();

        luongmauhientai = luongmautoida;

        gm    = GameObject.FindGameObjectWithTag("GameMaster").GetComponent <GameMaster>();
        sound = GameObject.FindGameObjectWithTag("Sound").GetComponent <SoundMng>();
    }
示例#30
0
        public void StartTranceEffect(Action finishAction)
        {
            this.iconCoverEffectParentObject.SetActive(true);
            SoundMng.Instance().TryPlaySE("SEInternal/Common/se_101", 0f, false, true, null, -1);
            this.iconCoverAnimation.Play("Awakening");
            EffectAnimatorEventTime component = this.iconCoverAnimation.GetComponent <EffectAnimatorEventTime>();

            component.SetEvent(0, finishAction);
            component.SetEvent(1, new Action(this.OnFinalize));
        }