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, 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); }
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); }
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); }
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); }
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); }
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); }); }
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); }); }