Esempio 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
    }
Esempio 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
    }