Exemplo n.º 1
0
    void Awake()
    {
        searchResultList = searchResults.GetComponent <DRSearchResultListController> ();
        List <DailyReflection> drlist = DRCache.FetchSomeDRs("en");

        searchResultList.InitScrollView(drlist);
    }
Exemplo n.º 2
0
 public DRFetcher(DRCache _cacheHandle, string _lang, Action <DRFetchContext> _callback)
 {
     cacheHandle = _cacheHandle;
     language    = _lang;
     callback    = _callback;
     context     = null;
 }
Exemplo n.º 3
0
    public void OnSearchButton()
    {
        List <DailyReflection> drs = DRCache.FetchSomeDRs("en", 20);
        DRList drList = drListObj.GetComponent <DRList> ();

        drList.InitScrollView(drs);
        MakeActiveColors();
    }
Exemplo n.º 4
0
    public void OnFavoriteButton()
    {
        List <DailyReflection> drs = DRCache.FetchSomeDRs("en");
        DRList drList = drListObj.GetComponent <DRList> ();

        drList.InitScrollView(drs);
        MakeActiveColors(favoriteImage, favoriteText);
    }
Exemplo n.º 5
0
 void MakeSingleton()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(this);
     }
 }