public void AddHat() { HatTypeName HT = HatTypes[HatIncrementor].HatType; GameObject G = HatTypes[HatIncrementor].Prefab; Hat newHat = new Hat(HT, G); HatPipeline.Add(newHat); }
public Hat(HatTypeName Type, GameObject GameObject) { HatType = Type; Prefab = GameObject; }