// Change subject and detail from XLS Data. public void UpdateText(SCRIPTTYPE type) { scType = type; BoxHelop_Sheet1.Param dataParam = boxHelpData.sheets [0].list .Where(data => data.procedure == scType.ToString()) .FirstOrDefault(); subjectText.text = dataParam.name; detailText.text = dataParam.detail; }
void PutHelpDialog() { GameObject obj = GameObject.FindWithTag("SelectMeFunction"); GameObject dialog = Instantiate(Resources.Load("BoxHelpDialog")) as GameObject; SCRIPTTYPE scriptType = obj.GetComponent <FlowBoxBehaviorControl> ().scriptKind; obj.tag = "Function"; dialog.SendMessage("UpdateText", scriptType); // Save a log. this.SendMessage("RecordData", "12, Watch a box help : script = " + scriptType.ToString() + ", " + ((int)scriptType).ToString()); }