コード例 #1
0
    public void Init(ChangeSelfInfoNode node)
    {
        transform.localPosition = Vector3.zero;
        transform.localScale    = Vector3.one;

        node_changeSelfInfoNode = node;
        image_choose            = null;
        avatar_choose           = null;
        page_no = 0;
        GetAllAvatarSprite();
        btn_yes.onClick.AddListener(() => {
            AnalysisManager.Instance.OnEvent("100005", null, "头像修改", "确定个人头像选择");
            SaveData();
        });
        btn_no.onClick.AddListener(() => {
            AnalysisManager.Instance.OnEvent("100005", null, "头像修改", "取消修改头像");
            Close();
        });

        btn_befor.onClick.AddListener(() =>
        {
            AnalysisManager.Instance.OnEvent("100005", null, "头像修改", "获取上一页头像");
            page_no -= 1;
            DisplayInfo();
        });
        btn_after.onClick.AddListener(() =>
        {
            AnalysisManager.Instance.OnEvent("100005", null, "头像修改", "获取下一页头像");
            page_no += 1;
            DisplayInfo();
        });
    }
コード例 #2
0
    void OnCkickNamePanel()
    {
        ChangeSelfInfoNode node = Instantiate(node_ChangeSelfInfoNode);

        node.transform.SetParent(transform, false);
    }