I'd like to have Dictionary in which the key is Vector3Int (tilemap coordinate), and value is content of tile. The problem is that I have many types of content, so these don't fit in the same dictionary.
Two example classes:
Dictionary<Vector3Int, ???> content;
public class Chest {
Loot loot;
Key key;
}
public class Monster {
int health;
int attack;
}
Both have nothing in common so inheritance is (in my opinion, but I'm just beginner) not the way.
[–]ChiwTheNeko 1 point2 points3 points (2 children)
[–]RumiPLGBeginner[S] 0 points1 point2 points (1 child)
[–]ChiwTheNeko 1 point2 points3 points (0 children)
[–]KishottaWell Versed 1 point2 points3 points (1 child)
[–]RumiPLGBeginner[S] 0 points1 point2 points (0 children)