Hey guys,
I am making a combo system that gets an array of positions and spawns sprites.
I then move these sprites to the score on the top left of the screen via TweenPosition. When they reach the end of the tween, I'd like to run a function and pass the object that finished to it.
This is basically what works, however, I have no idea how to pass the gameobject(insc) to that function:
EventDelegate.Add(insc.GetComponent<TweenPosition>().onFinished, AddToScore);
I'd definitely love some input on this as I tried reading the docs and only found a way
to read parameters but not write.
Thanks very much!
Max