private void _debugShipPos() { Debug.Log("ShipID:" + _debugIndex); if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(_debugIndex)) { IReward_Ship reward_Ship = new Reward_Ship(_debugIndex); _uiShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(reward_Ship.Ship.GetGraphicsMstId(), 9); _uiShip.MakePixelPerfect(); _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(reward_Ship.Ship.GetGraphicsMstId()).GetShipDisplayCenter(damaged: false)); _uiShip.alpha = 1f; } }
private void Update() { _clsInput.Update(); if (Input.GetKeyDown(KeyCode.B)) { Reward_Ship rewardShip = new Reward_Ship(131); _prodReceievShip = ProdReceiveShip.Instantiate(PrefabFile.Load <ProdReceiveShip>(PrefabFileInfos.CommonProdReceiveShip), base.transform.parent, rewardShip, 1, _clsInput); _prodReceievShip.Play(delegate { Debug.Log("艦娘ドロップ演出終了"); }); } }
private void Update() { this._clsInput.Update(); if (Input.GetKeyDown(98)) { Reward_Ship rewardShip = new Reward_Ship(131); this._prodReceievShip = ProdReceiveShip.Instantiate(PrefabFile.Load <ProdReceiveShip>(PrefabFileInfos.CommonProdReceiveShip), base.get_transform().get_parent(), rewardShip, 1, this._clsInput); this._prodReceievShip.Play(delegate { Debug.Log("艦娘ドロップ演出終了"); }); } }
public List <IReward> GetMapClearItems() { if (this._next_cell.MapClearItem == null) { return(null); } List <IReward> list = new List <IReward>(); for (int i = 0; i < this._next_cell.MapClearItem.get_Count(); i++) { IReward reward = null; MapItemGetFmt mapItemGetFmt = this._next_cell.MapClearItem.get_Item(i); switch (mapItemGetFmt.Category) { case MapItemGetFmt.enumCategory.Furniture: reward = new Reward_Furniture(mapItemGetFmt.Id); break; case MapItemGetFmt.enumCategory.Slotitem: reward = new Reward_Slotitem(mapItemGetFmt.Id, mapItemGetFmt.GetCount); break; case MapItemGetFmt.enumCategory.Ship: reward = new Reward_Ship(mapItemGetFmt.Id); break; case MapItemGetFmt.enumCategory.Material: reward = new Reward_Material((enumMaterialCategory)mapItemGetFmt.Id, mapItemGetFmt.GetCount); break; case MapItemGetFmt.enumCategory.UseItem: reward = new Reward_Useitem(mapItemGetFmt.Id, mapItemGetFmt.GetCount); break; } if (reward != null) { list.Add(reward); } } return(list); }
protected void _debugRewardShip() { Debug.Log("ShipID:" + debugIndex); if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(debugIndex)) { IReward_Ship reward_Ship = new Reward_Ship(debugIndex); _uiShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(reward_Ship.Ship.GetGraphicsMstId(), 9); _uiShip.MakePixelPerfect(); _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(reward_Ship.Ship.GetGraphicsMstId()).GetShipDisplayCenter(damaged: false)); NormalizeDescription(26, 1, reward_Ship.GreetingText); _clsShipMessage.Init(reward_Ship.GreetingText, 0.01f); _clsShipName.text = reward_Ship.Ship.Name; _clsSType.text = reward_Ship.Ship.ShipTypeName; _clsShipName.SetActive(isActive: false); _clsSType.SetActive(isActive: false); ((Component)_getIconAnim).gameObject.SetActive(false); _uiBg.mainTexture = TextureFile.LoadRareBG(reward_Ship.Ship.Rare); Debug.Log(reward_Ship.GreetingText); } _anim.Stop(); _anim.Play("comp_GetShip"); }
protected void _debugRewardShip() { Debug.Log("ShipID:" + this.debugIndex); if (Mst_DataManager.Instance.Mst_shipgraph.ContainsKey(this.debugIndex)) { IReward_Ship reward_Ship = new Reward_Ship(this.debugIndex); this._uiShip.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(reward_Ship.Ship.GetGraphicsMstId(), 9); this._uiShip.MakePixelPerfect(); this._uiShip.get_transform().set_localPosition(Util.Poi2Vec(new ShipOffset(reward_Ship.Ship.GetGraphicsMstId()).GetShipDisplayCenter(false))); string text = this.NormalizeDescription(26, 1, reward_Ship.GreetingText); this._clsShipMessage.Init(reward_Ship.GreetingText, 0.01f, null); this._clsShipName.text = reward_Ship.Ship.Name; this._clsSType.text = reward_Ship.Ship.ShipTypeName; this._clsShipName.SetActive(false); this._clsSType.SetActive(false); this._getIconAnim.get_gameObject().SetActive(false); this._uiBg.mainTexture = TextureFile.LoadRareBG(reward_Ship.Ship.Rare); Debug.Log(reward_Ship.GreetingText); } this._anim.Stop(); this._anim.Play("comp_GetShip"); }