コード例 #1
0
    public static BattleStats Battle(Creature creatureA, Creature creatureB, Battleground battleground)
    {
        BattlegroundStats bgStats = new BattlegroundStats();//ScriptableObject.CreateInstance<BattlegroundStats>();

        bgStats.GenerateBattlegroundStats(battleground);

        creatureA.ApplyGenesPerBattleground(bgStats);
        creatureB.ApplyGenesPerBattleground(bgStats);

        return(DoBattleSimulation(creatureA, creatureB));
    }