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