Exemple #1
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        var job = new AddGravityForce {
        };                                 //could add fields in here for struct

        return(job.Schedule(this, inputDeps));
    }
Exemple #2
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        //add the black whole gravity here. jesus.
        var job = new AddGravityForce {
            gravityStrength = PlayTimeSettings.GravityStrength
        };

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