Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
    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;
    }