コード例 #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);
        }
コード例 #2
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = UnityEngine.Object.Instantiate(prefab);

            prodBalloon.transform.parent = parent;
            prodBalloon.transform.localPositionZero();
            prodBalloon.transform.localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }
コード例 #3
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapEventItemModel itemModel)
        {
            ProdBalloon prodBalloon = UnityEngine.Object.Instantiate(prefab);

            prodBalloon.transform.parent = parent;
            prodBalloon.transform.localPositionZero();
            prodBalloon.transform.localScaleZero();
            prodBalloon.InitPortBackEo(iDirection, itemModel);
            return(prodBalloon);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapEventItemModel itemModel)
        {
            ProdBalloon prodBalloon = Object.Instantiate <ProdBalloon>(prefab);

            prodBalloon.get_transform().set_parent(parent);
            prodBalloon.get_transform().localPositionZero();
            prodBalloon.get_transform().localScaleZero();
            prodBalloon.InitPortBackEo(iDirection, itemModel);
            return(prodBalloon);
        }
コード例 #6
0
        public static ProdBalloon Instantiate(ProdBalloon prefab, Transform parent, UISortieShip.Direction iDirection, enumMapEventType iEventType, enumMapWarType iWarType)
        {
            ProdBalloon prodBalloon = Object.Instantiate <ProdBalloon>(prefab);

            prodBalloon.get_transform().set_parent(parent);
            prodBalloon.get_transform().localPositionZero();
            prodBalloon.get_transform().localScaleZero();
            prodBalloon.InitText(iDirection, iEventType, iWarType);
            return(prodBalloon);
        }
コード例 #7
0
        public void PlayBalloon(MapEventItemModel model, Action onFinished)
        {
            ProdBalloon balloon = ProdBalloon.Instantiate(((Component)_prefabProdBalloon).GetComponent <ProdBalloon>(), base.transform, _iDirection, model);

            balloon.depth = _uiShipSprite.depth + 1;
            balloon.ShowHide().setOnComplete((Action) delegate
            {
                Dlg.Call(ref onFinished);
                UnityEngine.Object.Destroy(balloon.gameObject);
                Mem.Del(ref balloon);
            });
        }
コード例 #8
0
        public void PlayBalloon(MapEventAirReconnaissanceModel eventAirRecModel, MapEventItemModel eventItemModel, Action onFinished)
        {
            if (eventAirRecModel.AircraftType == MapAirReconnaissanceKind.Impossible)
            {
                Dlg.Call(ref onFinished);
                return;
            }
            ProdBalloon balloon = ProdBalloon.Instantiate(((Component)_prefabProdBalloon).GetComponent <ProdBalloon>(), base.transform, _iDirection, eventAirRecModel, eventItemModel);

            balloon.depth = _uiShipSprite.depth + 1;
            balloon.ShowHide().setOnComplete((Action) delegate
            {
                Dlg.Call(ref onFinished);
                UnityEngine.Object.Destroy(balloon.gameObject);
                Mem.Del(ref balloon);
            });
        }