예제 #1
0
    public void ClickDocSK(GameObject obj)
    {
        for (int i = 0; i < listMail.Count; i++)
        {
            listEvent[i].GetComponent <ItemMail>().setCheck(false);
        }
        ItemMail it = obj.GetComponent <ItemMail>();

        it.setCheck(true);
        int    id = it.id;
        string nd = it.content;

        panelMessage.setTextSK(nd);
        SendData.onReadMessage(id);
    }
예제 #2
0
    /*
     * public void ClearListMail() {
     *  //for (int i = 0; i < tblContaintTinNhan.childCount; i++) {
     *  //    Destroy(tblContaintTinNhan.GetChild(i).gameObject);
     *  //}
     *  foreach (Transform it in tblContaintTinNhan) {
     *      Destroy(it.gameObject);
     *  }
     *  listMail.Clear();
     * }
     * public void ClearListEvent() {
     *  //for (int i = 0; i < tblContaintSuKien.childCount; i++) {
     *  //    Destroy(tblContaintSuKien.GetChild(i).gameObject);
     *  //}
     *  foreach (Transform it in tblContaintSuKien) {
     *      Destroy(it.gameObject);
     *  }
     *  listEvent.Clear();
     * }
     */
    public void ClickDocTN(GameObject obj)
    {
        for (int i = 0; i < listMail.Count; i++)
        {
            listMail[i].GetComponent <ItemMail>().setCheck(false);
        }
        ItemMail it = obj.GetComponent <ItemMail>();

        it.setCheck(true);
        int    id     = it.id;
        string guiluc = it.guiLuc;
        string guitu  = it.guiTu;
        string nd     = it.content;

        it.setRead();
        panelMessage.setTextMail(guitu, guiluc, nd);
        SendData.onReadMessage(id);
    }