Ejemplo n.º 1
0
    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
    }
Ejemplo n.º 2
0
    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
    }