コード例 #1
0
 public ReducerBase()
 {
     _undoApplier = new UndoApplier <TState>(30, AllowUndoCondition);
     if (CoroutineHolder.Instance == null)
     {
         _coroutineHolder = new GameObject("CoroutinesHolder").AddComponent <CoroutineHolder>();
     }
     else
     {
         _coroutineHolder = CoroutineHolder.Instance;
     }
 }
コード例 #2
0
 public void Dispose()
 {
     _undoApplier     = null;
     _context         = null;
     _coroutineHolder = null;
 }