コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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;
 }