Beispiel #1
0
 public void Mutate()
 {
     r = Mathf.Clamp01(r + GV.GetRandomFromV2(GV.Plants_Breed_Mutation_Variation_Range) * GV.RandomNegator());
     g = Mathf.Clamp01(g + GV.GetRandomFromV2(GV.Plants_Breed_Mutation_Variation_Range) * GV.RandomNegator());
     b = Mathf.Clamp01(b + GV.GetRandomFromV2(GV.Plants_Breed_Mutation_Variation_Range) * GV.RandomNegator());
 }
Beispiel #2
0
 private void SetSpreadAttemptCountdown()
 {
     spreadCountdown = GV.GetRandomFromV2(GV.Plants_Breed_Time_Range) * (1 + (GV.Plants_Breed_Time_CountMultiplier * PlantManager.Instance.PlantCount));
 }