Пример #1
0
 public void Initialize <T>(T _object, System.Action <T> _onFinishedCallback) where T : class
 {
     T1Cache.objectValue = _object as T;
     T1Cache.action      = arg => _onFinishedCallback(arg as T);
     finishedCallbacks.Add(T1Cache.Copy());
     Initialize();
 }
Пример #2
0
 //T1
 public virtual void Subscribe <T>(T _object, Action <T> _callback) where T : class
 {
     T1MatchCache.Clear();
     T1MatchCache = GetMatch(_object, out int ind);
     if (T1MatchCache.IsEmpty)
     {
         T1MatchCache.objectValue = _object;
         T1MatchCache.action      = arg => _callback(arg as T);
         T1Callbacks.Add(T1MatchCache.Copy());
     }
 }