- Home /
Question by
mwozniak93 · Jan 02, 2017 at 11:41 AM ·
classdesignarchitecture
Skills system - class design
Hello! I have a problem with my architecture design:
I have a class CardModel
[System.Serializable]
public class CardModel :Item {
public float Cooldown;
public int count;
}
then I have a
[System.Serializable]
public class ShootingCardModel:CardModel
{
public BulletType BulletType;
public float Damage;
public int Firerate;
}
In me Menu I generate Cards using for each on List
However I need to have in this list also ShootingCards (but I cant because the type is "CardModel" and in the inspector I cannot assign properties which are unique for ShootingCardModel). Please tell me, How can I do this? Maybe I should use another approach? I am really confused right now, so I will be glad if you could help me with this. Thank you in advance!
Comment