Пример #1
0
    protected override JobHandle OnUpdate(JobHandle inputDependencies)
    {
        var job = new CalculateInput()
        {
            FwdBackwardInput = Input.GetAxis("Vertical"),
            LeftRightInput   = Input.GetAxis("Horizontal"),
            DeltaTime        = Time.DeltaTime
        };

        // Now that the job is set up, schedule it to be run.
        return(job.Schedule(this, inputDependencies));
    }
Пример #2
0
 public CalculateOutput Calculate(CalculateInput parameter)
 {
     return(this.tryAction(
                createRequest: () => this.getNewRequest("/Companies/UralsibLife/RightDecision/Resources/api.vlib", Method.POST)
                .AddJsonBody(new RpcInput <CalculateInput[]>()
     {
         tid = 22,
         action = "RightDecisionDirect",
         method = "Calculate",
         type = "rpc",
         data = new CalculateInput[]
         {
             parameter,
         }
     }),
                createResponse: request => this.execute(request),
                createResult: response => this.GetRpcDataResult <CalculateOutput>(response)));
 }