File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ using System . Collections ;
12using System . Collections . Generic ;
23using UnityEngine ;
34
@@ -247,6 +248,16 @@ public EntityComponentType MatchEntity (System.Predicate<EntityComponentType> ma
247248 return matchedEntity ;
248249 }
249250
251+ /// <summary>
252+ /// Starts a coroutine on this system.
253+ /// </summary>
254+ /// <param name="routine">The coroutine to start.</param>
255+ /// <returns>The coroutine.</returns>
256+ public Coroutine StartCoroutine ( IEnumerator routine ) {
257+ // Start the coroutine on the controller.
258+ return Controller . Instance . StartCoroutine ( routine ) ;
259+ }
260+
250261 /// <summary>
251262 /// Starts a coroutine on this system.
252263 /// </summary>
@@ -262,6 +273,16 @@ public Coroutine StartCoroutine<IEnumeratorType> (IEnumerator<IEnumeratorType> r
262273 /// Stops a given coroutine.
263274 /// </summary>
264275 /// <param name="routine">The coroutine to stop.</param>
276+ public void StopCoroutine ( IEnumerator routine ) {
277+ // Stop the coroutine on the controller.
278+ Controller . Instance . StopCoroutine ( routine ) ;
279+ }
280+
281+ /// <summary>
282+ /// Stops a given coroutine.
283+ /// </summary>
284+ /// <typeparam name="IEnumeratorType">The type of the coroutine.</typeparam>
285+ /// <param name="routine">The coroutine to stop.</param>
265286 public void StopCoroutine < IEnumeratorType > ( IEnumerator < IEnumeratorType > routine ) {
266287 // Stop the coroutine on the controller.
267288 Controller . Instance . StopCoroutine ( routine ) ;
You can’t perform that action at this time.
0 commit comments