Exemplo n.º 1
0
    public override void StartModule(int param, object data = null)
    {
        if (m_TwoView == null)
        {
            m_TwoView = UILoader.LoadUI <TwoView>("UI/TwoView");
        }
        UI.Instance.addChild(m_TwoView);

        if (m_DarwHandView == null)
        {
            m_DarwHandView = UI.Instance.FindView <DarwHandView>();
        }
        m_DarwHandView.SetIamge(true);

        m_TwoView.m_HandLeaveEvent = HandLeaveEvent;
        m_TwoView.m_StartTimer     = StartTimer;
    }
Exemplo n.º 2
0
    public override void StartModule(int param, object data = null)
    {
        if (m_OneView == null)
        {
            m_OneView = UILoader.LoadUI <OneView>("UI/OneView");
        }
        UI.Instance.addChild(m_OneView);

        if (m_DarwHandView == null)
        {
            m_DarwHandView = UILoader.LoadUI <DarwHandView>("UI/DarwHandView");
        }

        m_DarwHandView.m_HaveHandEvent = HaveHandEvent;
        m_DarwHandView.SetIamge(false);
        UI.Instance.addChild(m_DarwHandView, UI.UILayerType.TOP);
    }