예제 #1
0
        public static T ForceAllocate <T>(int cookie, System.Action <T> processor = null) where T : ModuleLogicActivator <T>, new()
        {
            var instance = ModuleLogicActivator <T> .ForceAllocate(cookie, processor);

            Submit(instance);
            return(instance);
        }
예제 #2
0
 public static void ForceCache <T>(int cookie, T instance) where T : ModuleLogicActivator <T>, new()
 {
     ModuleLogicActivator <T> .Cache(instance, cookie);
 }
예제 #3
0
 public static T Get <T>(int cookie) where T : ModuleLogicActivator <T>, new()
 {
     return(ModuleLogicActivator <T> .Get(cookie));
 }