public void ChapterClick() { if (isShow[(int)PopType.chapter] != true) { GameObject obj = Instantiate(chapterPop); obj.SetActive(true); ChapterPop pop = obj.GetComponent <ChapterPop>(); pop.InitData(); pop.transform.parent = this.transform; pop.transform.localScale = Vector3.one; isShow[(int)PopType.chapter] = true; } }
public void OpenChapter(ChapterPop p) { chapterPop = p; chapterPop.InitChapter(GameShared.Instance.GetChapterById(UserManager.Instance.curUnLockChapter)); }