public static ConditionalEventWrapper CreateWrapper <T1, T2>(
            IConditionalEvent <T1, T2> iConditional)
            where T1 : GameObject
            where T2 : GameObject
        {
            var instance = new ConditionalEventWrapper(iConditional, typeof(T1), typeof(T2));

            return(instance);
        }
 public static ConditionalEventWrapper Wrap <TObject1, TObject2>(this IConditionalEvent <TObject1, TObject2> item)
     where TObject1 : GameObject
     where TObject2 : GameObject
 {
     return(ConditionalEventWrapper.CreateWrapper(item));
 }
예제 #3
0
 public void AddIConditionalEvent <TFirst, TSecond>(IConditionalEvent <TFirst, TSecond> action)
     where TFirst : GameObject
     where TSecond : GameObject
 {
     AddToDictionary(typeof(TFirst), typeof(TSecond), ConditionalEventWrapper.CreateWrapper(action));
 }