public OldHopper(Entity entity, OldHopperConfig config) { this.entity = entity; this.config = config; jumpHeight = config.jumpHeight; jumpDistance = config.jumpDistance; baseSpeed = config.baseSpeed; timeToWait = 0.001f + RXRandom.Range(config.waitMinTime,config.waitMaxTime)*0.5f; //wait less the first time }
public OldHopper(Entity entity, OldHopperConfig config) { this.entity = entity; this.config = config; jumpHeight = config.jumpHeight; jumpDistance = config.jumpDistance; baseSpeed = config.baseSpeed; timeToWait = 0.001f + RXRandom.Range(config.waitMinTime, config.waitMaxTime) * 0.5f; //wait less the first time }