本文整理匯總了C#中Character.standby方法的典型用法代碼示例。如果您正苦於以下問題:C# Character.standby方法的具體用法?C# Character.standby怎麽用?C# Character.standby使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Character
的用法示例。
在下文中一共展示了Character.standby方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: 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 ());
}
}
示例2: moveFinish
public void moveFinish(Character character)
{
character.startCheckOpponent();
character.standby();
}
示例3: 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;
}
}
}
}