public sceneCell getCell(int key) { sceneCell t = null; this.AllData.TryGetValue(key.ToString(), out t); return(t); }
public sceneCell getCell(string key) { sceneCell t = null; this.AllData.TryGetValue(key, out t); return(t); }
private IEnumerator FinishShowPieceInfoHint(int pieceId) { Config.sceneCell sceneCell = sceneConfig.getCell(pieceId); if (sceneCell.israwopen < 1) { pieceInfoNameText.text = GetL10NString("Ui_Text_113"); } else { pieceInfoNameText.text = string.Format(GetL10NString(sceneCell.scenename), sceneCell.sceneorder); } sceneTipsText.text = GoToSceneTipsTextString(pieceId); pieceInfoHint.gameObject.SetActive(true); pieceInfoHint.transform.localPosition = new Vector3( pieceInfoHint.transform.localPosition.x, pieceInfoHintOrigPosy, pieceInfoHint.transform.localPosition.z); pieceInfoHint.alpha = 1; pieceInfoHint.transform.DOLocalMoveY(pieceInfoHintOrigPosy + 60, 0.3f); yield return(new WaitForSeconds(2f)); pieceInfoHint.DOFade(0, 0.29f); pieceInfoHint.transform.DOLocalMoveY(pieceInfoHintOrigPosy + 120, 0.3f).OnComplete(() => { pieceInfoHint.gameObject.SetActive(false); }); }
public override void Active() { base.Active(); int sceneId = (int)this.m_data; Config.sceneCell sceneCell = sceneConfig.getCell(sceneId); multipleText.text = string.Format(multipleFmtStr, sceneCell.doublenum); sceneNameText.text = string.Format(GetL10NString(sceneCell.scenename), sceneCell.sceneorder); int scenetype = Config.sceneConfig.getInstace().getCell(sceneId).moneyid; string iconPath = Config.moneyConfig.getInstace().getCell(scenetype).bigmoneyicon; goldIcon.sprite = ResourceManager.LoadSpriteFromPrefab(iconPath); }