/// <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; }
/// <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); }
private void saveTimer() { log("Save timer triggered", "saveTimer"); StateTracker.getInstance().saveState(); }