void Start() { if (!InitializedTypes.Contains(MapperType)) { Initialize(); } if (!Default && string.IsNullOrEmpty(Id)) { throw new Exception("Font mapper error: Id not set for a non-default font mapper"); } if (!_mappers.ContainsKey(Id)) { _mappers.Add(Id, this); } }
public override void Initialize() { base.Initialize(); InitializedTypes.Add("Apple"); }
public override void Initialize() { base.Initialize(); InitializedTypes.Add("Fruit"); IsFruit = true; }