Exemplo n.º 1
0
        // Token: 0x0600000D RID: 13 RVA: 0x00002290 File Offset: 0x00000490
        public GameObject GetHullPlate()
        {
            bool       flag = this.Texture == null;
            GameObject result;

            if (flag)
            {
                result = null;
            }
            else
            {
                GameObject   gameObject  = Resources.Load <GameObject>("Submarine/Build/DioramaHullPlate");
                GameObject   gameObject2 = UnityEngine.Object.Instantiate <GameObject>(gameObject);
                MeshRenderer component   = Radical.FindChild(gameObject2, "Icon").GetComponent <MeshRenderer>();
                component.material.mainTexture = this.Texture;
                PrefabIdentifier component2 = gameObject2.GetComponent <PrefabIdentifier>();
                component2.ClassId = this.Info.InternalName;
                TechTag component3 = gameObject2.GetComponent <TechTag>();
                component3.type = this.TechType;
                Constructable component4 = gameObject2.GetComponent <Constructable>();
                component4.techType = this.TechType;
                result = gameObject2;
            }
            return(result);
        }