當前位置: 首頁>>代碼示例>>C#>>正文


C# Character.standby方法代碼示例

本文整理匯總了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 ());
        }
    }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:15,代碼來源:LevelMgr.cs

示例2: moveFinish

 public void moveFinish(Character character)
 {
     character.startCheckOpponent();
     character.standby();
 }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:5,代碼來源:Skill_CAIERA30A.cs

示例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;
                }
            }
        }
    }
開發者ID:rogeryuan99,項目名稱:Hello,代碼行數:60,代碼來源:BattleBg.cs


注:本文中的Character.standby方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。