I'm writing a simple game in unity and would like to construct a combat function
public CombatVsMonster (Character character, Monster monster)
this is what I have (takes a character and monster and executes a combat)
How can I make the same code work with (merging those two, so the second constructor can be either Monster or Character class)
public CombatVsMonster (Character character, Character character)
in other words: Can I have a constructor that would be able to take in different class objects? If yes: how?
Monsterderive fromCharacter?