public static ProdUnderwayReplenishment Instantiate(ProdUnderwayReplenishment prefab, Transform parent, MapSupplyModel model) { ProdUnderwayReplenishment prodUnderwayReplenishment = UnityEngine.Object.Instantiate(prefab); prodUnderwayReplenishment.transform.parent = parent; prodUnderwayReplenishment.transform.localScaleOne(); prodUnderwayReplenishment.transform.localPositionZero(); prodUnderwayReplenishment.Init(model); return(prodUnderwayReplenishment); }
public static ProdUnderwayReplenishment Instantiate(ProdUnderwayReplenishment prefab, Transform parent, MapSupplyModel model) { ProdUnderwayReplenishment prodUnderwayReplenishment = Object.Instantiate <ProdUnderwayReplenishment>(prefab); prodUnderwayReplenishment.get_transform().set_parent(parent); prodUnderwayReplenishment.get_transform().localScaleOne(); prodUnderwayReplenishment.get_transform().localPositionZero(); prodUnderwayReplenishment.Init(model); return(prodUnderwayReplenishment); }
private IEnumerator ChkUnderwayReplenishment(MapManager manager) { if (manager.GetMapSupplyInfo() != null) { ProdUnderwayReplenishment pur = ProdUnderwayReplenishment.Instantiate(((Component)SortieMapTaskManager.GetPrefabFile().prefabProdUnderwayReplenishment).GetComponent <ProdUnderwayReplenishment>(), SortieMapTaskManager.GetSharedPlace(), manager.GetMapSupplyInfo()); yield return(pur.Play().StartAsCoroutine()); Mem.DelComponentSafe(ref pur); yield break; } MapManager mm = SortieBattleTaskManager.GetMapManager(); UISortieShipCharacter uissc = SortieMapTaskManager.GetUIShipCharacter(); if (uissc.isInDisplay) { uissc.SetShipData(mm.Deck.GetFlagShip()); uissc.Show(null); yield return(Observable.Timer(TimeSpan.FromSeconds(2.0)).StartAsCoroutine()); } }