void Command_ReturnControl() { Debug.Log("Control returned"); FindObjectOfType <GameSequence>().OnSegmentDone(); AudioManager.instance.PlaySong(null); NovelController.instance.gameObject.SetActive(false); CACHE.printCACHE(); }
public static object CacheSet(SessionKeys key, object obj) { int defaultTime = 15; return(CACHE.Add( key.Value, obj, null, DateTime.Now.AddMinutes(defaultTime), TimeSpan.Zero, System.Web.Caching.CacheItemPriority.Normal, null )); }
public static void Delete(SessionKeys key) { if (key.IsInCache) { CACHE.Remove(key.Value); } else { SESSION.Remove(key.Value); } }
void Command_SetCacheValue(string data) { //location, new value string[] parameters = data.Split(','); int index = int.Parse(parameters[0]); string val = parameters[1]; val = val.Replace('_', ' '); CACHE.tempVals[index] = val; CACHE.printCACHE(); }
// Accept the current input and close the screen. public void Accept() { Hide(); CACHE.tempVals[0] = inputField.text; CACHE.printCACHE(); }
private static object CacheGet(SessionKeys key) { return(CACHE.Get(key.Value)); }
public CacheData GetCacheData(ClientRequest CR) { return(CACHE.Invoke(instance, new object[] { CR }) as CacheData); }