public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null) { m_uiTutorialCompleteCB = completeCB; SetActive(true); StartCoroutine("StartDelayTime", info.delayTime); }
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; }
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); }
public override void CloseUI(bool isActiveCB = false) { SetActive(false); if (isActiveCB && m_uiTutorialCompleteCB != null) { m_uiTutorialCompleteCB(); } m_uiTutorialCompleteCB = null; }
public override void CloseUI(bool isActiveCB = false) { m_objTransform.gameObject.SetActive(false); SetActive(false); if (isActiveCB && m_uiTutorialCompleteCB != null) { m_uiTutorialCompleteCB(); } m_uiTutorialCompleteCB = null; }
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); }
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); }
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; }
public override void UpdateCallback(UITutorial.UITutorialCloseCB completeCB) { m_uiTutorialCompleteCB = completeCB; }
public override void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null) { m_uiTutorialCompleteCB = completeCB; UpdateWindow(info); }
public virtual void UpdateCallback(UITutorialCloseCB completeCB) { }
public virtual void OpenUI(TutorialInfo info, UITutorialCloseCB completeCB = null) { }