16-05-2018, 05:43 PM
(16-05-2018, 05:17 PM)josemendez Wrote: Yes, you can just have that. I meant that the arguments of your Move() function should be the same ones declared for OnStepBegin, but I see you already did that.
It sill falls behind

This is what I have:
Code:
//Solver declaration, assigned through editor
public ObiSolver solver;
public void Start()
{
solver.OnStepBegin += Move;
}
public void Move(object sender, EventArgs e)
{
//Movement
}