public override float WeightMob(MobInfo info, SpawnChance chance) { if (info.Type == typeof(Bee) || info.Type == typeof(Explobee)) { return(info.Chance * 2); } return(base.WeightMob(info, chance)); }
GameObject Figure_Randomiser() { if (SpawnChance.Get(ActiveLevelData.PointsFigureSpawnMultiplier)) { return(points_figure); } else if (SpawnChance.Get(ActiveLevelData.DiamondSpawnMultiplier)) { return(Diamond); } else { int i = Random.Range(0, StandardBehaviorEnemy.Count); return(StandardBehaviorEnemy[i] ?? cube_enemy); } }
public virtual float WeightMob(MobInfo info, SpawnChance chance) { return(chance.Chance); }