示例#1
0
 private void GetNewIsland()
 {
     islandChance += UnityEngine.Random.Range(3f * chanceValueModifier, 5f * chanceValueModifier);
     if (islandChance > 100f)
     {
         islandChance        -= 100f;
         chanceValueModifier *= chanceMultiplierPerIsland;
         int islandValue = UnityEngine.Random.Range(0, 10);
         if (islandValue > 6)
         {
             MeetIsland(islandFactory.CreateIsland(day, playerResources.GearScore, true, activeMovement.transform.position), true);
         }
         else
         {
             MeetIsland(islandFactory.CreateIsland(day, playerResources.GearScore, false, activeMovement.transform.position), true);
         }
     }
 }