Ejemplo n.º 1
0
    private CreateRoleUI GetCreateRoleUI()
    {
        if (this.UICreateRole == null)
        {
            this.UICreateRole = Common.Create<CreateRoleUI>(this.TfNodePos);
        }

        return this.UICreateRole;
    }
Ejemplo n.º 2
0
    private void ChangeToRoleList()
    {
        // 隐藏问题UI;
        QustionUnit script = GetQustionUnit(0);
        script.gameObject.SetActive(false);

        // 显示角色列表
        this.UICreateRole = this.GetCreateRoleUI();
        this.UICreateRole.gameObject.SetActive(true);
    }
Ejemplo n.º 3
0
    public CreateRoleUIConfig()
    {
        prefab_Path = "CreateRoleUI";

        View  = new CreateRoleUI();
        Ctrl  = new CreateRoleUICtrl();
        Model = new CreateRoleUIModel();

        layer = ENUM_UILayer.Normal;
        InitConfig();
    }
Ejemplo n.º 4
0
    private GameObject[] m_RolesGO; //保存所有的角色模型


    private void Start()
    {
        m_Camera    = Camera.main;
        m_Targetpos = new Vector3(-113.342f, 20.065f, 39.693f);
        m_CRUI      = GameObject.Find("Canvas").GetComponent <CreateRoleUI>();
        m_RolesGO   = GameObject.FindGameObjectsWithTag(Tags.Player);
        for (int i = 0; i < m_RolesGO.Length; i++)
        {
            m_RolesGO[i].SetActive(false);
        }
    }