当前位置: 首页>>代码示例>>C#>>正文


C# Character.removeHandlerFromParmlessHandlerByParam方法代码示例

本文整理汇总了C#中Character.removeHandlerFromParmlessHandlerByParam方法的典型用法代码示例。如果您正苦于以下问题:C# Character.removeHandlerFromParmlessHandlerByParam方法的具体用法?C# Character.removeHandlerFromParmlessHandlerByParam怎么用?C# Character.removeHandlerFromParmlessHandlerByParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Character的用法示例。


在下文中一共展示了Character.removeHandlerFromParmlessHandlerByParam方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: moveToBattleStartPositionFinished

    public void moveToBattleStartPositionFinished(Character character)
    {
        if(character !=null){
            character.removeHandlerFromParmlessHandlerByParam(Character.ParmlessHandlerFunNameEnum.OnMoveToPositionFinished, moveToBattleStartPositionFinished);
            character.standby();
            character.selecting();
            heroMoveToBattleStartPosCurrentCount++;

            if (!IsSkipHudPreBattle && StaticData.isBattleEnd)
            {
                heroStateDialogInScreen(character as Hero);
        //			disabledHeroStateDialogButtons(enabledheroStateDialogButtonsType);
        //		    highlightHeroStateDialogButtons(highlightHeroStateDialogButtonsTypeList, true);
            }
        }
        if(heroMoveToBattleStartPosCurrentCount == heroMoveToBattleStartPosCount)
        {

        //			enabledheroStateDialogButtonsType.Clear();
        //			highlightHeroStateDialogButtonsTypeList.Clear();
            if (!IsSkipHudPreBattle && StaticData.isBattleEnd)
            {
        //				LevelMgr.Instance.battleButtonObj.SetActive(true);
                //this.createBattleBeginDlg(); too late here

                preBattleDlg.gameObject.SetActive(true);
                if(heroMoveToBattleStartPosCurrentCount == 0)
                {
                    preBattleDlg.showEmptyTeam(true);
                    preBattleDlg.setReady(false);
                }else{
                    preBattleDlg.showEmptyTeam(false);
                    preBattleDlg.setReady(true);
                }
                this.createHeroStateDialogForAdd();
            }
            else if (IsSkipHudPreBattle && StaticData.isBattleEnd)
            {
                LevelMgr.Instance.OnBattleBtnClick();
            }
            if (null != OnBattleReady)
            {
                OnBattleReady();
            }

            TsFtueManager.Instance.CheckEvent(string.Format("{0}_{1}-{2}",
            TsFtueManager.BATTLE_READY, MapMgr.Instance.currentChapterIndex, MapMgr.Instance.currentLevelIndex));

            int costStamina = Formulas.getCostStaminaByLevel(MapMgr.Instance.currentChapterIndex, MapMgr.Instance.currentLevelIndex);

            foreach(Hero hero in HeroMgr.heroHash.Values)
            {
                if(hero != null && ((hero.data as HeroData).stamina - costStamina) < 0)
                {
                    //MusicManager.playEffectMusic("SFX_hero_low_health_2a");
                    break;
                }
            }
        }
    }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:60,代码来源:BattleBg.cs

示例2: moveComplete

    void moveComplete(Character character)
    {
        character.removeHandlerFromParmlessHandlerByParam(Character.ParmlessHandlerFunNameEnum.OnMoveToPositionFinished, moveComplete);

        character.standby ();
        character.selecting ();

        moveCompleteHeroCurrentCount ++;

        if (moveCompleteHeroCount == moveCompleteHeroCurrentCount)
        {
        //			Debug.LogError("if (moveCompleteHeroCount == moveCompleteHeroCurrentCount) ");
            StartCoroutine (victory_step3_celebrate ());
        }
    }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:15,代码来源:LevelMgr.cs

示例3: heroOutToBattleFinish

 public void heroOutToBattleFinish(Character c)
 {
     c.removeHandlerFromParmlessHandlerByParam(Character.ParmlessHandlerFunNameEnum.OnMoveToPositionFinished, heroOutToBattleFinish);
     Destroy(c.gameObject);
 }
开发者ID:rogeryuan99,项目名称:Hello,代码行数:5,代码来源:BattleBg.cs


注:本文中的Character.removeHandlerFromParmlessHandlerByParam方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。