public Map_ResultFmt() { this.Rashin_id = CompassType.None; this.Cell_no = 0; this.Color_no = 0; this.Event_id = enumMapEventType.None; this.Event_kind = enumMapWarType.None; this.IsNext = false; this.Comment = MapCommentKind.None; this.Production = MapProductionKind.None; this.GetSpoint = 0; }
public Map_ResultFmt() { Rashin_id = CompassType.None; Cell_no = 0; Color_no = 0; Event_id = enumMapEventType.None; Event_kind = enumMapWarType.None; IsNext = false; Comment = MapCommentKind.None; Production = MapProductionKind.None; GetSpoint = 0; }
public void PlayBalloon(MapCommentKind iKind, Action onFinished) { if (iKind == MapCommentKind.None) { Dlg.Call(ref onFinished); return; } ProdCommentBalloon balloon = ProdCommentBalloon.Instantiate(((Component)_prefabProdCommentBalloon).GetComponent <ProdCommentBalloon>(), base.transform, _iDirection, iKind); balloon.sprite.depth = _uiShipSprite.depth + 1; balloon.ShowHide().setOnComplete((Action) delegate { Dlg.Call(ref onFinished); UnityEngine.Object.Destroy(balloon.gameObject); Mem.Del(ref balloon); }); }
private void SetBalloonComment(MapCommentKind iKind) { string spriteName = string.Empty; switch (iKind) { case MapCommentKind.Enemy: spriteName = "fuki_ship1"; break; case MapCommentKind.Atack: spriteName = "fuki_ship2"; break; } base.sprite.spriteName = spriteName; base.sprite.MakePixelPerfect(); base.transform.localScaleZero(); }
private void SetBalloonComment(MapCommentKind iKind) { string spriteName = string.Empty; if (iKind != MapCommentKind.Enemy) { if (iKind == MapCommentKind.Atack) { spriteName = "fuki_ship2"; } } else { spriteName = "fuki_ship1"; } base.sprite.spriteName = spriteName; base.sprite.MakePixelPerfect(); base.get_transform().localScaleZero(); }
public void SetMember(CompassType rashin_id, Mst_mapcell2 target_cell, MapItemGetFmt item, List <MapItemGetFmt> clearItems, MapHappningFmt happning, MapCommentKind comment, MapProductionKind production, AirReconnaissanceFmt airSearch, EventMapInfo eventMap, List <int> selectcell, List <int> newOpenMap, int spoint) { this.Rashin_id = rashin_id; this.Cell_no = target_cell.No; if (selectcell != null) { this.SelectCells = Enumerable.ToList <int>(selectcell); } this.Color_no = target_cell.Color_no; this.Event_id = target_cell.Event_1; this.Event_kind = target_cell.Event_2; this.IsNext = target_cell.IsNext(); this.Comment = comment; this.Production = production; this.AirReconnaissance = airSearch; this.ItemGet = item; this.MapClearItem = clearItems; this.Happning = happning; this.MapHp = eventMap; this.NewOpenMapId = newOpenMap; this.GetSpoint = spoint; }
public void SetMember(CompassType rashin_id, Mst_mapcell2 target_cell, MapItemGetFmt item, List <MapItemGetFmt> clearItems, MapHappningFmt happning, MapCommentKind comment, MapProductionKind production, AirReconnaissanceFmt airSearch, EventMapInfo eventMap, List <int> selectcell, List <int> newOpenMap, int spoint) { Rashin_id = rashin_id; Cell_no = target_cell.No; if (selectcell != null) { SelectCells = selectcell.ToList(); } Color_no = target_cell.Color_no; Event_id = target_cell.Event_1; Event_kind = target_cell.Event_2; IsNext = target_cell.IsNext(); Comment = comment; Production = production; AirReconnaissance = airSearch; ItemGet = item; MapClearItem = clearItems; Happning = happning; MapHp = eventMap; NewOpenMapId = newOpenMap; GetSpoint = spoint; }
public static ProdCommentBalloon Instantiate(ProdCommentBalloon prefab, Transform parent, UISortieShip.Direction iDirection, MapCommentKind iKind) { ProdCommentBalloon prodCommentBalloon = Object.Instantiate <ProdCommentBalloon>(prefab); prodCommentBalloon.get_transform().set_parent(parent); prodCommentBalloon.get_transform().localScaleZero(); prodCommentBalloon.get_transform().localPositionZero(); prodCommentBalloon.Init(iDirection, iKind); return(prodCommentBalloon); }
private bool Init(UISortieShip.Direction iDirection, MapCommentKind iKind) { this.SetBalloonComment(iKind); this.SetBalloonPos(iDirection); return(true); }