コード例 #1
0
 public void UpdateNewGroup()
 {
     newItem.UpdateNew();
     infoModity.Comfirm();
     newItem = null;
     newBtn.SetActive(true);
     updateBtn.SetActive(false);
 }
コード例 #2
0
    /// <summary>
    /// 添加账户组对象
    /// </summary>
    public void AddAccount(GroupInfoRecord info, int id)
    {
        GameObject g = Instantiate(accountPerfab) as GameObject;

        g.GetComponent <GroupRecordItem>().SetValue(info, this, id);
        g.GetComponent <GroupRecordItem>().infoModify       = infoModity;
        g.GetComponent <GroupRecordItem> ().LBLStatus.value = true;
        g.transform.SetParent(accountParent);
        g.transform.localScale = Vector3.one;
        accountParent.GetComponent <UIGrid> ().repositionNow = true;
        if (id == 0 || id == -1)
        {
            g.GetComponent <GroupRecordItem>().ShowGroupModifyWindow(gameObject);
            g.GetComponent <GroupRecordItem>().Click();
            if (id == -1)
            {
                newItem = g.GetComponent <GroupRecordItem>();
            }
        }
    }