本文整理汇总了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;
}
}
}
}
示例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 ());
}
}
示例3: heroOutToBattleFinish
public void heroOutToBattleFinish(Character c)
{
c.removeHandlerFromParmlessHandlerByParam(Character.ParmlessHandlerFunNameEnum.OnMoveToPositionFinished, heroOutToBattleFinish);
Destroy(c.gameObject);
}