public bool CacheEqualto(AdminFilePage filePage) { return (pageNum == filePage.currentPageNum && sortingMethod == filePage.sortMethodDropdown.value && fliterType == filePage.filterDropdown.value && filterTime == filePage.timeDropdown.value && keyword == filePage.keyword && rateFrom == filePage.rateFromDropdown.value && rateTo == filePage.rateToDropdown.value + 1); }
public void Setup() { GameObject loginAndSignUpPanel = Object.Instantiate((GameObject)Resources.Load("Prefabs/LoginAndSignUp Panel")); loginAndSignUp = loginAndSignUpPanel.GetComponent <LoginAndSignUp>(); Debug.Log(loginAndSignUp); GameObject o = new GameObject("cavasObj"); o.AddComponent <Canvas>(); GameObject adminFilePagePanel = Object.Instantiate((GameObject)Resources.Load("Prefabs/Administration File Page Panel"), o.transform); adminFilePage = adminFilePagePanel.GetComponent <AdminFilePage>(); Debug.Log(adminFilePage); }
public AdminFilePageCache(AdminFilePage filePage) { fileOverviews = new List <GameObject>(); foreach (Transform fileOverviewTrans in filePage.filePanel.transform) { if (fileOverviewTrans.gameObject.activeSelf) { fileOverviews.Add(fileOverviewTrans.gameObject); } } pageNum = filePage.currentPageNum; sortingMethod = filePage.sortMethodDropdown.value; fliterType = filePage.filterDropdown.value; filterTime = filePage.timeDropdown.value; keyword = filePage.keyword; rateFrom = filePage.rateFromDropdown.value; rateTo = filePage.rateToDropdown.value + 1; }