Ejemplo n.º 1
0
    private void Awake()
    {
        currentUIType.type       = UIFormType.PopUp;
        currentUIType.mode       = UIFormShowMode.ReverseChange;
        currentUIType.lucenyType = UIFormLucenyType.Translucence;

        nameText = UnityHelper.Find(gameObject.transform, "Text").GetComponent <Text>();
        ReceiveMsg("Props", hander =>
        {
            if (nameText)
            {
                string[] strArray = hander.Values as string[];
                nameText.text     = strArray[0];
            }
        });

        RigisterBtnOnClick("btnClose", go => CloseUI());
    }