void OnClick() { switch (type) { case ETutorialLevel.DAILY_REQUEST: type = ETutorialLevel.ACHIVEMENT; arrowTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowAchievement.x, TutorialDetailConfig.AnchorArrowAchievement.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowAchievement.z); contentTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentAchievement.x, TutorialDetailConfig.AnchorContentAchievement.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentAchievement.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentAchievement; arrowTutorialAll.GetComponent <UIAnchor>().enabled = true; contentTutorialAll.GetComponent <UIAnchor>().enabled = true; count = 0; break; case ETutorialLevel.ACHIVEMENT: type = ETutorialLevel.TO_PLAY; arrowTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowUnlock.x, TutorialDetailConfig.AnchorArrowUnlock.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowUnlock.z); contentTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentUnlock.x, TutorialDetailConfig.AnchorContentUnlock.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentUnlock.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentUnlock; arrowTutorialAll.GetComponent <UIAnchor>().enabled = true; contentTutorialAll.GetComponent <UIAnchor>().enabled = true; count = 0; break; case ETutorialLevel.TO_PLAY: LevelManager.Instance.tutorial.SetActive(false); break; case ETutorialLevel.SKIP: LevelManager.Instance.tutorial.SetActive(false); break; } }
void OnClick() { switch (type) { case ETutorialLevel.DAILY_REQUEST: type = ETutorialLevel.ACHIVEMENT; arrowTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowAchievement.x, TutorialDetailConfig.AnchorArrowAchievement.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowAchievement.z); contentTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentAchievement.x, TutorialDetailConfig.AnchorContentAchievement.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentAchievement.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentAchievement; arrowTutorialAll.GetComponent<UIAnchor>().enabled = true; contentTutorialAll.GetComponent<UIAnchor>().enabled = true; count = 0; break; case ETutorialLevel.ACHIVEMENT: type = ETutorialLevel.TO_PLAY; arrowTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowUnlock.x, TutorialDetailConfig.AnchorArrowUnlock.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowUnlock.z); contentTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentUnlock.x, TutorialDetailConfig.AnchorContentUnlock.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentUnlock.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentUnlock; arrowTutorialAll.GetComponent<UIAnchor>().enabled = true; contentTutorialAll.GetComponent<UIAnchor>().enabled = true; count = 0; break; case ETutorialLevel.TO_PLAY: LevelManager.Instance.tutorial.SetActive(false); break; case ETutorialLevel.SKIP: LevelManager.Instance.tutorial.SetActive(false); break; } }