示例#1
0
 public static void SuccessSound()
 {
     Menu_SoundManager.Play_SE(Menu_SoundManager.SYSTEM_SOUND.SELECT, Menu_SoundManager.PLAY_TYPE.ONCE, 1f);
 }
示例#2
0
        private Player ActivatePlayer(Player plObj, WresIDGroup wrestler)
        {
            plObj.FormRen.DestroySprite();

            #region Variables
            int                    idx            = plObj.PlIdx;
            MatchSetting           matchSetting   = GlobalWork.inst.MatchSetting;
            MatchWrestlerInfo      info           = MatchConfiguration.CreateWrestlerInfo(wrestler.ID);
            Player                 player         = PlayerMan.inst.CreatePlayer(idx, null);
            WrestlerAppearanceData appearanceData = SaveData.inst.GetEditWrestlerData(info.wrestlerID).appearanceData;
            #endregion

            #region Setting wrestler appearance
            player.Init((WrestlerID)wrestler.ID, PadPort.AI, wrestler.Group);
            player.FormRen.InitTexture(appearanceData.costumeData[info.costume_no], null);
            player.FormRen.InitSprite(false);
            for (int i = 0; i < 5; i++)
            {
                Menu_SoundManager.Sound_ClipWrestlerVoice_List[idx, i] = null;
            }
            for (int j = 0; j < 5; j++)
            {
                Menu_SoundManager.Load_WrestlerVoice(idx, j, info.param.voiceType[j], info.param.voiceID[j]);
            }
            #endregion

            player.finishMove_Atk.Clear();
            player.finishMove_Def[0].Clear();
            player.finishMove_Def[1].Clear();

            if (idx < 4)
            {
                player.MyGroupPlIdx_Start    = 0;
                player.MyGroupPlIdx_End      = 4;
                player.EnemyGroupPlIdx_Start = 4;
                player.EnemyGroupPlIdx_End   = 8;
                player.finishWewstlerID      = matchSetting.matchWrestlerInfo[4].wrestlerID;
            }
            else
            {
                player.MyGroupPlIdx_Start    = 4;
                player.MyGroupPlIdx_End      = 8;
                player.EnemyGroupPlIdx_Start = 0;
                player.EnemyGroupPlIdx_End   = 4;
                player.finishWewstlerID      = matchSetting.matchWrestlerInfo[0].wrestlerID;
            }

            player.animator.ReqBasicAnm(BasicSkillEnum.Stand_Power_S, false, -1);
            player.animator.UpdateAnimation();
            player.animator.CurrentSkill  = SkillDataMan.inst.GetSkillData_Standard(BasicSkillEnum.Stand_Power_S);
            player.animator.CurrentAnmIdx = 0;
            player.animator.AnmHostPlayer = player.PlIdx;
            player.ChangeState(PlStateEnum.Stand);
            player.animator.isAnmPause = false;

            #region Setting player to enter
            VenueSetting venueSetting = Ring.inst.venueSetting;
            player.moveSpeed             = player.WresParam.walkSpeed;
            player.isLoseAndStop         = false;
            player.isLose                = false;
            player.isEntranceWalking     = false;
            player.isEntrancePerformance = false;
            player.hasRight              = true;
            player.SetSleep(false);
            player.TargetPlIdx = player.PlIdx;
            player.Group       = idx;

            //player.PlPos.x = MatchData.PlayerInitialPosTbl[idx].x;
            //player.PlPos.y = MatchData.PlayerInitialPosTbl[idx].y;
            #endregion

            PlayerMan.inst.SetPlayer(idx, player);
            return(player);
        }
示例#3
0
 public static void FailSound()
 {
     Menu_SoundManager.Play_SE(Menu_SoundManager.SYSTEM_SOUND.CANCEL, Menu_SoundManager.PLAY_TYPE.ONCE, 1f);
 }