void Start() { countUpdate = 0; uiTutorialAll = PlayManager.Instance.tutorial.GetComponent <UITutorialAll>(); arrowTutorialAll = uiTutorialAll.arrow; contentTutorialAll = uiTutorialAll.content; int len = contentTutorialAll.transform.childCount; for (int i = 0; i < len; i++) { if (contentTutorialAll.transform.GetChild(i).name == "Skip") { buttonSkip = contentTutorialAll.transform.GetChild(i).gameObject; break; } } if (type == ETutorialPlay.TARGET) { arrowTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowTarget.x, TutorialDetailConfig.AnchorArrowTarget.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowTarget.z); contentTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentTarget.x, TutorialDetailConfig.AnchorContentTarget.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentTarget.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentTarget; } }
void Start() { count = 0; uiTutorialAll = LevelManager.Instance.tutorial.GetComponent <UITutorialAll>(); arrowTutorialAll = uiTutorialAll.arrow; contentTutorialAll = uiTutorialAll.content; if (type == ETutorialLevel.DAILY_REQUEST) { arrowTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowDaily.x, TutorialDetailConfig.AnchorArrowDaily.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowDaily.z); contentTutorialAll.GetComponent <UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentDaily.x, TutorialDetailConfig.AnchorContentDaily.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentDaily.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentDaily; } }
void Start() { count = 0; uiTutorialAll = LevelManager.Instance.tutorial.GetComponent<UITutorialAll>(); arrowTutorialAll = uiTutorialAll.arrow; contentTutorialAll = uiTutorialAll.content; if (type == ETutorialLevel.DAILY_REQUEST) { arrowTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorArrowDaily.x, TutorialDetailConfig.AnchorArrowDaily.y); arrowTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorArrowDaily.z); contentTutorialAll.GetComponent<UIAnchor>().relativeOffset = new Vector2(TutorialDetailConfig.AnchorContentDaily.x, TutorialDetailConfig.AnchorContentDaily.y); contentTutorialAll.transform.localRotation = Quaternion.Euler(0, 0, TutorialDetailConfig.AnchorContentDaily.z); uiTutorialAll.labelContent.text = TutorialDetailConfig.ContentDaily; } }