16-05-2018, 05:17 PM
(16-05-2018, 05:06 PM)VirtualCucumber Wrote: Thanks for the info.
Sorry for spamming with questions but i havent dealt yet with Delegates and Events. I get the jist of them just havent used them.
I cant just have:
Code:private void Start()
{
solver.OnStepBegin += Move;
}
public void Move(object sender, EventArgs e)
Do i have to declare a delegate in the ObiSolver class and assign its type to OnFrameBegin/End ?
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.