示例#1
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        m_results = new List <Result>();
        for (int i = 0; i < m_resultObjects.Length; i++)
        {
            m_results.Add(new Result());
        }

        m_coroutineQueue = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_backEndAPI = new BackEndAPI(this, m_user.GetErrorMessage(), m_user);

        m_searchInputText  = m_searchInput.GetComponentInChildren <Text>();
        m_searchState      = SearchState.kNone;
        m_currSearchString = "";

        HideAllResults();

        m_menuController.RegisterToUseMenuConfig(this);
        MenuController.MenuConfig menuConfig = m_menuController.GetMenuConfigForOwner(this);
        menuConfig.menuBarVisible      = true;
        menuConfig.imageSpheresVisible = true;
        menuConfig.subMenuVisible      = true;
    }
示例#2
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        m_commentResults = new List <CommentResult>();

        m_coroutineQueue = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_backEndAPI = new BackEndAPI(this, m_user.GetErrorMessage(), m_user);
    }
示例#3
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        m_coroutineQueue = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_backEndAPI = new BackEndAPI(this, m_user.GetErrorMessage(), m_user);

        m_menuController.RegisterToUseMenuConfig(this);
        MenuController.MenuConfig menuConfig = m_menuController.GetMenuConfigForOwner(this);
        menuConfig.menuBarVisible = true;
        menuConfig.subMenuVisible = true;
        m_menuController.UpdateMenuConfig(this);
    }
示例#4
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        m_coroutineQueue = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_backEndAPI = new BackEndAPI(this, m_user.GetErrorMessage(), m_user);

        m_imageSubMenu.SetActive(false);

        m_menuController.RegisterToUseMenuConfig(this);
        MenuController.MenuConfig menuConfig = m_menuController.GetMenuConfigForOwner(this);
        menuConfig.menuBarVisible      = false;
        menuConfig.imageSpheresVisible = false;
        menuConfig.subMenuVisible      = false;
    }
示例#5
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        AndroidJNI.AttachCurrentThread();
        m_javaPluginClass = new AndroidJavaClass("io.vreel.vreel.JavaPlugin");

        m_galleryImageFilePaths = new List <string>();
        m_coroutineQueue        = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_threadJob = new ThreadJob(this);

        m_backEndAPI = new BackEndAPI(this, m_user.GetErrorMessage(), m_user);

        m_uploadConfirmation.SetActive(false);
    }
示例#6
0
    // **************************
    // Public functions
    // **************************

    public void Start()
    {
        UnityEngine.Random.InitState((int)System.DateTime.Now.Ticks);

        // Version dependent code
        m_vreelSaveFile = GetSaveFile();
        m_dataFilePath  = Application.persistentDataPath + m_vreelSaveFile;

        m_loginData          = new LoginData();
        m_loginData.m_client = m_loginData.m_uid = m_loginData.m_accessToken = "";
        m_id = m_handle = m_email = m_name = m_profileDescription = "";

        m_backEndAPI = new BackEndAPI(this, m_errorMessage, this);

        m_coroutineQueue = new CoroutineQueue(this);
        m_coroutineQueue.StartLoop();

        m_threadJob = new ThreadJob(this);

        m_loadingLoginData = true;
        m_coroutineQueue.EnqueueAction(LoadLoginData());
    }