Exemplo n.º 1
0
        public static ProdDetectionCutIn Instantiate(ProdDetectionCutIn prefab, Transform parent, SakutekiModel model)
        {
            ProdDetectionCutIn prodDetectionCutIn = UnityEngine.Object.Instantiate(prefab);

            prodDetectionCutIn.transform.parent        = parent;
            prodDetectionCutIn.transform.localScale    = Vector3.zero;
            prodDetectionCutIn.transform.localPosition = Vector3.zero;
            prodDetectionCutIn.setAircraft(KCV.Battle.Utils.SlotItemUtils.GetDetectionScoutingPlane(model.planes_f));
            return(prodDetectionCutIn);
        }
        public static ProdDetectionCutIn Instantiate(ProdDetectionCutIn prefab, Transform parent, SakutekiModel model)
        {
            ProdDetectionCutIn prodDetectionCutIn = Object.Instantiate <ProdDetectionCutIn>(prefab);

            prodDetectionCutIn.get_transform().set_parent(parent);
            prodDetectionCutIn.get_transform().set_localScale(Vector3.get_zero());
            prodDetectionCutIn.get_transform().set_localPosition(Vector3.get_zero());
            prodDetectionCutIn.setAircraft(KCV.Battle.Utils.SlotItemUtils.GetDetectionScoutingPlane(model.planes_f));
            return(prodDetectionCutIn);
        }