예제 #1
0
 void Command_ReturnControl()
 {
     Debug.Log("Control returned");
     FindObjectOfType <GameSequence>().OnSegmentDone();
     AudioManager.instance.PlaySong(null);
     NovelController.instance.gameObject.SetActive(false);
     CACHE.printCACHE();
 }
예제 #2
0
        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
                       ));
        }
예제 #3
0
 public static void Delete(SessionKeys key)
 {
     if (key.IsInCache)
     {
         CACHE.Remove(key.Value);
     }
     else
     {
         SESSION.Remove(key.Value);
     }
 }
예제 #4
0
    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();
    }
예제 #5
0
 // Accept the current input and close the screen.
 public void Accept()
 {
     Hide();
     CACHE.tempVals[0] = inputField.text;
     CACHE.printCACHE();
 }
예제 #6
0
 private static object CacheGet(SessionKeys key)
 {
     return(CACHE.Get(key.Value));
 }
예제 #7
0
 public CacheData GetCacheData(ClientRequest CR)
 {
     return(CACHE.Invoke(instance, new object[] { CR }) as CacheData);
 }