Exemple #1
0
    public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
    {
        m_uiTutorialCompleteCB = completeCB;

        SetActive(true);
        StartCoroutine("StartDelayTime", info.delayTime);
    }
Exemple #2
0
    public override void CloseUI(bool isActiveCB = false)
    {
        OnOffSprite(false, true);

        if (m_guideObjList != null)
        {
            for (int i = 0; i < m_guideObjList.Count; i++)
            {
                if (m_guideObjList[i] != null)
                {
                    Destroy(m_guideObjList[i]);
                }
            }

            m_guideObjList = null;
        }

        m_objTransform.gameObject.SetActive(false);
        SetActive(false);

        if (isActiveCB && m_uiTutorialCompleteCB != null)
        {
            m_uiTutorialCompleteCB();
        }
        m_uiTutorialCompleteCB = null;
    }
Exemple #3
0
    public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
    {
        m_curTutorialInfo      = info;
        m_uiTutorialCompleteCB = completeCB;

        SetActive(true);

        m_uiAnchor.side = info.attachAnchorType;

        m_objTransform.gameObject.SetActive(true);
        m_objTransform.localPosition = GetPosition(info.highlightPos);

        m_targetSprite.width  = GetSizeValue((int)info.highlighSize.x);
        m_targetSprite.height = GetSizeValue((int)info.highlighSize.y);

        switch (info.TriggerType)
        {
        case TUTORIAL_TRIGGER_TYPE.TYPE_TOUCH_VIEW:
            m_targetSprite.GetComponent <Collider>().enabled = true;
            m_targetEventListener.onTutorialClick            = OnTouchViewClick;
            break;

        case TUTORIAL_TRIGGER_TYPE.TYPE_TOUCH_CALLBACK:
            m_targetSprite.GetComponent <Collider>().enabled = true;
            m_targetEventListener.onTutorialClick            = OnTouchCallbackClick;
            break;

        default:
            m_targetSprite.GetComponent <Collider>().enabled = false;
            m_targetEventListener.onTutorialClick            = null;
            break;
        }

        OnOffSprite(true);
    }
Exemple #4
0
    public override void CloseUI(bool isActiveCB = false)
    {
        SetActive(false);

        if (isActiveCB && m_uiTutorialCompleteCB != null)
        {
            m_uiTutorialCompleteCB();
        }
        m_uiTutorialCompleteCB = null;
    }
Exemple #5
0
    public override void CloseUI(bool isActiveCB = false)
    {
        m_objTransform.gameObject.SetActive(false);
        SetActive(false);

        if (isActiveCB && m_uiTutorialCompleteCB != null)
        {
            m_uiTutorialCompleteCB();
        }
        m_uiTutorialCompleteCB = null;
    }
Exemple #6
0
    public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
    {
        m_uiTutorialCompleteCB = completeCB;

        SetActive(true);

        m_uiAnchor.side = info.attachAnchorType;
        m_objTransform.localPosition = new Vector3(3000.0f, 3000.0f, 0);

        m_objTransform.gameObject.SetActive(true);
        m_objTransform.localPosition = info.fingerPos;

        m_icon.localRotation = Quaternion.Euler(info.fingerAngle * Vector3.forward);
    }
Exemple #7
0
    public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
    {
        m_uiTutorialCompleteCB = completeCB;

        SetActive(true);

        for (int i = 0; i < m_uiScenarioNpcGroup.Length; i++)
        {
            m_uiScenarioNpcGroup[i].ResetToBeginning();
        }

        PlayScenario(info);
        OnOffSkipButton(info.isSkipEnable, !info.isSkipEnable);
    }
Exemple #8
0
    public override void CloseUI(bool isActiveCB = false)
    {
        m_talkWindow.gameObject.SetActive(false);
        SetActive(false);

        if (m_guideObjList != null)
        {
            for (int i = 0; i < m_guideObjList.Count; i++)
            {
                if (m_guideObjList[i] != null)
                {
                    Destroy(m_guideObjList[i]);
                }
            }

            m_guideObjList = null;
        }

        if (isActiveCB && m_uiTutorialCompleteCB != null)
        {
            m_uiTutorialCompleteCB();
        }
        m_uiTutorialCompleteCB = null;
    }
Exemple #9
0
 public override void UpdateCallback(UITutorial.UITutorialCloseCB completeCB)
 {
     m_uiTutorialCompleteCB = completeCB;
 }
Exemple #10
0
 public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
 {
     m_uiTutorialCompleteCB = completeCB;
     UpdateWindow(info);
 }
Exemple #11
0
 public virtual void UpdateCallback(UITutorialCloseCB completeCB)
 {
 }
Exemple #12
0
 public virtual void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null)
 {
 }