void ClearResultInfoPanel() { ResultItemTypeTextObject.GetComponent <Text>().text = ""; ResultItemNameInputFieldObject.GetComponent <InputField>().interactable = true; ResultItemNameInputFieldObject.GetComponent <InputField>().text = ""; ExpectedCostTextObject.GetComponent <Text>().text = "TEST"; MaterialPointTextObject.GetComponent <Text>().text = ""; TechPointTextObject.GetComponent <Text>().text = ""; LookPointTextObject.GetComponent <Text>().text = ""; TotalPointTextObject.GetComponent <Text>().text = ""; PackagedImageObject.GetComponent <Image>().sprite = Resources.Load <Sprite>("GameSystem/InGameUI/Sprite/QuestionMark"); }
void DisplayResultItem(LabatoryAct.ResultObject TargetInfo) { ResultItemImageObject.GetComponent <Image>().sprite = Resources.Load <Sprite>("GameSystem/Goods/Sprite/" + TargetInfo.Type); ResultItemImageObject.GetComponent <Image>().color = new Color(1f, 1f, 1f, 1f); ResultItemTypeTextObject.GetComponent <Text>().text = TargetInfo.Type; ResultItemNameInputFieldObject.GetComponent <InputField>().interactable = true; ResultItemNameInputFieldObject.GetComponent <InputField>().text = ""; ExpectedCostTextObject.GetComponent <Text>().text = (Mathf.CeilToInt((float)TargetInfo.RequiredPoint / (TargetInfo.RequiredResearchPower / CallTargetLabatoryAct.ResearchPower)) * CallTargetLabatoryAct.Budget).ToString(); MaterialPointTextObject.GetComponent <Text>().text = "x " + (Mathf.CeilToInt(TargetInfo.Attractiveness.MaterialPoint * 10f) * 0.1f).ToString(); TechPointTextObject.GetComponent <Text>().text = "x " + (Mathf.CeilToInt(TargetInfo.Attractiveness.TechPoint * 10f) * 0.1f).ToString(); LookPointTextObject.GetComponent <Text>().text = "x " + (Mathf.CeilToInt(TargetInfo.Attractiveness.LookPoint * 10f) * 0.1f).ToString(); TotalPointTextObject.GetComponent <Text>().text = "x " + (Mathf.CeilToInt(TargetInfo.Attractiveness.TotalPoint * 10f) * 0.1f).ToString(); if (TargetInfo.Attractiveness.isPackaged) { PackagedImageObject.GetComponent <Image>().sprite = Resources.Load <Sprite>("GameSystem/InGameUI/Sprite/PossitiveMark"); } else { PackagedImageObject.GetComponent <Image>().sprite = Resources.Load <Sprite>("GameSystem/InGameUI/Sprite/NegativeMark"); } }