public void DoPostConfigure(GameObject go) { go.GetComponent <KPrefabID>().AddTag(GameTags.Clothes,false); Equippable equippable = go.AddOrGet <Equippable>(); equippable.SetQuality(QualityLevel.Poor); go.GetComponent <KBatchedAnimController>().sceneLayer = Grid.SceneLayer.BuildingBack; go.GetComponent <KPrefabID>().AddTag(GameTags.PedestalDisplayable,false); }
public static void SetupVest(GameObject go) { go.GetComponent <KPrefabID>().AddTag(GameTags.Clothes); Equippable equippable = go.GetComponent <Equippable>(); if ((Object)equippable == (Object)null) { equippable = go.AddComponent <Equippable>(); } equippable.SetQuality(QualityLevel.Poor); go.GetComponent <KBatchedAnimController>().sceneLayer = Grid.SceneLayer.BuildingBack; }