コード例 #1
0
 protected void UpgradeAllSpeciesModelStats(StatsType statsType)
 {
     foreach (Species upgradeSpecies in GameManager.speciesArray)
     {
         if (upgradeSpecies != Species.Wolves)
         {
             Pop_Dynamics_Model.modelStatsDick[upgradeSpecies][statsType] += Pop_Dynamics_Model.GetOriginalStat(upgradeSpecies, statsType) * RankIncrease(rank, rewardVariablesDickList[mainArrayIndex][statsType][0], rewardVariablesDickList [mainArrayIndex][statsType][1], rewardVariablesDickList[mainArrayIndex][statsType][2], rewardVariablesDickList[mainArrayIndex][statsType][3], rewardVariablesDickList[mainArrayIndex][statsType][4]);
         }
     }
 }
コード例 #2
0
 private IEnumerator GraphPopulations()
 {
     StartCoroutine(MoveParticleSystem());
     while (true)
     {
         for (float time = 0f; time < dayLength; time += Time.smoothDeltaTime)
         {
             Pop_Dynamics_Model.day += Time.smoothDeltaTime / dayLength;
             yield return(null);
         }
         Pop_Dynamics_Model.SetPreviousPopDick();
         for (int i = 0; i < Pop_Dynamics_Model.speciesList.Count; i++)
         {
             thisParticleSystem.Emit(new Vector3(0f, Pop_Dynamics_Model.Equations(i), 0f), particleVelocity, particleSize, Mathf.Infinity, Pop_Dynamics_Model.speciesColorDick[Pop_Dynamics_Model.speciesList[i]]);
         }
     }
 }
コード例 #3
0
    protected void ChangeEatRates(Species predator, Species prey)
    {
        float amount = Pop_Dynamics_Model.GetOriginalEatRate(predator, prey) * RankIncrease(rank, rewardVariablesDickList[mainArrayIndex][StatsType.EatRates][0], rewardVariablesDickList [mainArrayIndex][StatsType.EatRates][1], rewardVariablesDickList[mainArrayIndex][StatsType.EatRates][2], rewardVariablesDickList[mainArrayIndex][StatsType.EatRates][3], rewardVariablesDickList[mainArrayIndex][StatsType.EatRates][4]);

        Pop_Dynamics_Model.ChangeEatRates(predator, prey, amount);
    }
コード例 #4
0
    protected void ChangeModelStats(Species changingSpecies, StatsType statsType)
    {
        float amount = Pop_Dynamics_Model.GetOriginalStat(changingSpecies, statsType) * RankIncrease(rank, rewardVariablesDickList[mainArrayIndex][statsType][0], rewardVariablesDickList [mainArrayIndex][statsType][1], rewardVariablesDickList[mainArrayIndex][statsType][2], rewardVariablesDickList[mainArrayIndex][statsType][3], rewardVariablesDickList[mainArrayIndex][statsType][4]);

        Pop_Dynamics_Model.ChangeModelStats(changingSpecies, statsType, amount);
    }