コード例 #1
0
        public static ProdShellingSlot Instantiate(ProdShellingSlot prefab, Transform parent)
        {
            ProdShellingSlot prodShellingSlot = UnityEngine.Object.Instantiate(prefab);

            prodShellingSlot.transform.parent        = parent;
            prodShellingSlot.transform.localScale    = Vector3.one;
            prodShellingSlot.transform.localPosition = Vector3.zero;
            return(prodShellingSlot);
        }
コード例 #2
0
        public static ProdShellingSlot Instantiate(ProdShellingSlot prefab, Transform parent)
        {
            ProdShellingSlot prodShellingSlot = Object.Instantiate <ProdShellingSlot>(prefab);

            prodShellingSlot.get_transform().set_parent(parent);
            prodShellingSlot.get_transform().set_localScale(Vector3.get_one());
            prodShellingSlot.get_transform().set_localPosition(Vector3.get_zero());
            return(prodShellingSlot);
        }