private void BuyDialogSet(BuyDialogSetMsg msg) { this.index = msg.index; this.cost = msg.cost; imgSkillIcon.sprite = Resources.Load <Sprite>(msg.imgPath) as Sprite; imgSkillIcon.SetNativeSize(); txtInfo.text = String.Format("의 구매는 {0}의 잠재력이 필요합니다.", msg.cost.ToString()); if (msg.isBuyPossible) { btnOK.enabled = true; btnOK.transform.GetChild(0).GetComponent <Text>().color = new Color(255, 255, 255, 1f); } else { btnOK.enabled = false; btnOK.transform.GetChild(0).GetComponent <Text>().color = new Color(255, 255, 255, 0.5f); } }
private void BuyDialogSet(BuyDialogSetMsg msg) { imgBuffIcon.sprite = Resources.Load <Sprite>(msg.imgPath) as Sprite; imgBuffIcon.SetNativeSize(); Debug.Log("BuyDialogSetMsg :: " + msg.index); this.index = msg.index; this.cost = msg.cost; txtInfo.text = String.Format("코인 {0}을 사용하여 해당 버프를 구매 하시겠습니까?", msg.cost.ToString()); if (msg.isBuyPossible) { btnOK.enabled = true; btnOK.transform.GetChild(0).GetComponent <Text>().color = new Color(255, 255, 255, 1f); } else { btnOK.enabled = false; btnOK.transform.GetChild(0).GetComponent <Text>().color = new Color(255, 255, 255, 0.5f); } }