This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using Zenject; | |
public abstract class PooledEnumerator<T> : IDisposable, IEnumerator where T : PooledEnumerator<T>, new() | |
{ | |
private static readonly StaticMemoryPool<T> Pool = new StaticMemoryPool<T>(); | |
// ReSharper disable once StaticMemberInGenericType | |
private static readonly object CompletedSignal = new object(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class PausableBehaviour : MonoBehaviour | |
{ | |
private Stack<IEnumerator> stack = new Stack<IEnumerator>(); | |
private Coroutine stackRoutine; | |
private void StartStack() |