Exemplo n.º 1
0
        /// <summary>
        /// Get singleton instance
        /// </summary>
        /// <returns></returns>
        public static StateTracker getInstance()
        {
            if (s_Instance == null) {
                s_Instance = new StateTracker();

                // We may need to wait on MyAPIGateway
                if (!s_Instance.loadState())
                    s_Instance = null;
            }

            return s_Instance;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get singleton instance
        /// </summary>
        /// <returns></returns>
        public static StateTracker getInstance()
        {
            if (s_Instance == null)
            {
                s_Instance = new StateTracker();

                // We may need to wait on MyAPIGateway
                if (!s_Instance.loadState())
                {
                    s_Instance = null;
                }
            }

            return(s_Instance);
        }
Exemplo n.º 3
0
 private void saveTimer()
 {
     log("Save timer triggered", "saveTimer");
     StateTracker.getInstance().saveState();
 }