Beispiel #1
0
        void Awake()
        {
            if (t_instance != null)
            {
                Destroy(gameObject);
            }
            else
            {
                t_instance = this;
                DontDestroyOnLoad(this.gameObject);

                m_api_manager     = ApiManager.getInstance();
                m_request_manager = RequestManager.getInstance();
            }
        }
Beispiel #2
0
        void Awake()
        {
            if (t_instance != null)
            {
                Destroy(gameObject);
            }
            else
            {
                t_instance = this;
                DontDestroyOnLoad(this.gameObject);

                m_api_manager = ApiManager.getInstance();

                pt_api_request = new ApiRequest(m_api_manager.p_token_id, m_api_manager.p_token, m_api_manager.p_timeout_seconds);

                m_requests = new List <ARequest>();
            }
        }
Beispiel #3
0
        void Awake()
        {
            if (t_instance != null)
            {
                Destroy(gameObject);
            }
            else
            {
                t_instance = this;
                DontDestroyOnLoad(this.gameObject);

                m_api_manager      = ApiManager.getInstance();
                m_currency_manager = CurrencyManager.getInstance();
                m_request_manager  = RequestManager.getInstance();

                pt_products_fetched  = false;
                pt_products_fetching = false;
            }
        }