コード例 #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));
 }