public void ShowListUI() { //타겟포인트에 따른 가구 불러오는 것 다르게 if (scrollMng.targetPos >= 0f && scrollMng.targetPos < 0.25f) { curType = "카페"; CurStoreList = MyStoreList.FindAll(x => x.Type == "카페"); } else if (scrollMng.targetPos >= 0.25f && scrollMng.targetPos < 0.5f) { curType = "치킨집"; CurStoreList = MyStoreList.FindAll(x => x.Type == "치킨집"); } else if (scrollMng.targetPos >= 0.5f && scrollMng.targetPos < 0.75f) { curType = "곱창집"; CurStoreList = MyStoreList.FindAll(x => x.Type == "곱창집"); } else if (scrollMng.targetPos >= 0.75f && scrollMng.targetPos < 1f) { curType = "헬스장"; CurStoreList = MyStoreList.FindAll(x => x.Type == "헬스장"); } else if (scrollMng.targetPos >= 1.0f) { curType = "냥나랜드"; CurStoreList = MyStoreList.FindAll(x => x.Type == "냥냐랜드"); } //가게이름 받아오기 StoreNameText.text = curType; }
void Init() { //MyCharacter가 존재하지 않는 경우 MyCharacter만듦 for (int i = 0; i < AllStoreList.Count; i++) { MyStoreList.Add(AllStoreList[i]); } Save(); Load(); }