❔ How to input a reference of a class into a function with an argument of an interface
`
I want to save the result of whatever StartFight does to fighter1 and fighter 2, specifically the health and other things down the line
using out or ref throws out an error
any other solutions than just returning the IFighter arguments with a tuple then assigining values individually outside the method?
6 Replies
your fighters are reference types, it's going to be saved anyway
oh.
misred the results, ah
Seems like “in” doesnt work, but the work around should be simple
Thanks!
what doesn't work
in
what do you need that for
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.