Beispiel #1
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        var job = new SwayJob
        {
            DeltaTime = Time.deltaTime
        };

        return(job.Schedule(this, inputDeps));
    }
Beispiel #2
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        var sj = new SwayJob()
        {
            frequency   = 0.5f
            , amplitude = 60
            , timeDelta = Time.deltaTime
        };

        return(sj.Schedule(this, inputDeps));
    }
Beispiel #3
0
    // Update is called once per frame
    void Update()
    {
        var job = new SwayJob()
        {
            timeDelta   = Time.deltaTime
            , angle     = this.angle
            , frequency = this.frequency
            , theta     = this.theta
        };

        jh = job.Schedule(transforms);
    }
Beispiel #4
0
    public void Update()
    {
        job = new SwayJob()
        {
            deltaTime = Time.deltaTime,
            frequency = this.frequency,
            axis      = this.axis,
            angle     = this.angle,
            theta     = this.theta
        };

        jh = job.Schedule(transforms);
    }