public Sequence AddDOTweenSequence(string key) { if (key != null && _dict.ContainsKey(key)) { RemoveDOTween(key); } key = key ?? _idPool.Get().ToString(); var sequence = DOTween.Sequence(); _dict[key] = sequence; sequence.OnKill(() => RemoveDOTween(key)); return(sequence); }
public string StartCoroutine(IEnumerator ie, string key = null) { key = key ?? idPool.Get().ToString(); this.dict[key] = ie; mono.StopAndStartCacheIEnumerator(key.ToGuid(this), ie); return(key); }
public string StartCoroutine(IEnumerator ie, string key = null) { CleanFinishedCoroutines(); key = key ?? idPool.Get().ToString(); var coroutine = mono.StopAndStartCachePausableCoroutine(key.ToGuid(this), ie); this.dict[key] = coroutine; return(key); }