public void AddType(MonsterTemplate t) { try { types.Add(t.GetMonsterId(), t); } catch (Exception) { Debug.LogError("type " + t.GetMonsterId() + " already exists! ( " + t.GetType().Name + ")"); } }