Exemplo n.º 1
0
    // 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;
    }
Exemplo n.º 2
0
    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());
    }