Ejemplo n.º 1
0
    // OnUpdate runs on the main thread.
    protected override JobHandle OnUpdate(JobHandle inputDependencies)
    {
        var job = new HelloMovementSpeedJob()
        {
            dT = Time.deltaTime
        };

        return(job.Schedule(this, inputDependencies));
    }
    // OnUpdate runs on the main thread.
    protected override JobHandle OnUpdate(JobHandle inputDependencies)
    {
        var job = new HelloMovementSpeedJob()
        {
            dT = Time.deltaTime, ciljPozicija =
                _player.transform.position
        };

        return(job.Schedule(this, inputDependencies));
    }
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        var job = new HelloMovementSpeedJob()
        {
            dT            = Time.deltaTime,
            ciljPozicija  = Player.transform.position,
            CollisionList = GetBufferFromEntity <CollisionList>()
        };

        return(job.Schedule(this, inputDeps));
    }