Exemplo n.º 1
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapEventAirReconnaissanceModel eventAirRecModel, MapEventItemModel eventItemModel)
        {
            ProdBalloon prodBalloon = UnityEngine.Object.Instantiate(prefab);

            prodBalloon.transform.parent = parent;
            prodBalloon.transform.localPositionZero();
            prodBalloon.transform.localScaleZero();
            prodBalloon.InitAirRec(iDirection, eventAirRecModel, eventItemModel);
            return(prodBalloon);
        }
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapEventAirReconnaissanceModel eventAirRecModel, MapEventItemModel eventItemModel)
        {
            ProdBalloon prodBalloon = Object.Instantiate <ProdBalloon>(prefab);

            prodBalloon.get_transform().set_parent(parent);
            prodBalloon.get_transform().localPositionZero();
            prodBalloon.get_transform().localScaleZero();
            prodBalloon.InitAirRec(iDirection, eventAirRecModel, eventItemModel);
            return(prodBalloon);
        }