Пример #1
0
 public void DeleteAllyCharacterInBattleList(GameObject deleteObj)
 {
     allyCharacterInBattleList.Remove(deleteObj);
     if (allyCharacterInBattleList.Count == 0)
     {
         ShowMessage("味方が全滅");
         battleIsOver = true;
         CharacterBattle characterBattleScript;
         foreach (var character in allCharacterList)
         {
             // 味方キャラクターの戦闘で増減したHPとMPを通常のステータスに反映させる
             characterBattleScript = character.GetComponent <CharacterBattle>();
             if (characterBattleScript.GetCharacterStatus() as AllyStatus != null)
             {
                 characterBattleScript.GetCharacterStatus().SetHp(characterBattleScript.GetHp());
                 characterBattleScript.GetCharacterStatus().SetMp(characterBattleScript.GetMp());
                 characterBattleScript.GetCharacterStatus().SetParalyze(characterBattleScript.IsNumbness());
                 characterBattleScript.GetCharacterStatus().SetPoisonState(characterBattleScript.IsPoison());
                 characterBattleScript.GetCharacterStatus().SetSilence(characterBattleScript.IsSilence());
             }
         }
         // 敗戦時の結果表示
         battleResult.InitialProcessingOfDefeatResult();
     }
 }