I have a method that I'd want to accept ref to a specific object:
public static void Death(ref Animal unit)
{
...
}
And then i have :
object target
A generic object that can be a Animal and other stuff. If it's an Animal I want to cast target into Animal and then pass that ref to my Death method but I can't figure out how to do it...