Skip to content

Commit 49e7de6

Browse files
Added overload for Coroutine to StopCoroutine
1 parent 22e1543 commit 49e7de6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Entity Component System
66

7-
[![npm](https://img.shields.io/badge/upm-3.4.1-232c37.svg?style=for-the-badge)]()
7+
[![npm](https://img.shields.io/badge/upm-3.4.2-232c37.svg?style=for-the-badge)]()
88
[![license](https://img.shields.io/badge/license-Custom-%23ecc531.svg?style=for-the-badge)](./LICENSE.md)
99
[![npm](https://img.shields.io/badge/sponsor-donate-E12C9A.svg?style=for-the-badge)](https://paypal.me/jeffreylanters)
1010
[![npm](https://img.shields.io/github/stars/elraccoone/unity-entity-component-system.svg?style=for-the-badge)]()
@@ -233,6 +233,7 @@ public abstract class EntitySystem<EntitySystemType, EntityComponentType> : IEnt
233233
public UnityEngine.Coroutine StartCoroutine (System.Collections.IEnumerator routine);
234234
/// Stops a given coroutine.
235235
public void StopCoroutine (System.Collections.IEnumerator routine);
236+
public void StopCoroutine (UnityEngine.Coroutine routine);
236237
/// Enables or disables this system.
237238
public void SetEnabled (bool isEnabled);
238239
/// Gets the enabled status of this system

Runtime/EntitySystem.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public UnityEngine.Coroutine StartCoroutine (System.Collections.IEnumerator rout
108108
public void StopCoroutine (System.Collections.IEnumerator routine) =>
109109
Controller.Instance.StopCoroutine (routine);
110110

111+
/// Stops a given coroutine.
112+
public void StopCoroutine (UnityEngine.Coroutine routine) =>
113+
Controller.Instance.StopCoroutine (routine);
114+
111115
/// Enables or disables this system.
112116
public void SetEnabled (bool isEnabled) =>
113117
Instance.isEnabled = isEnabled;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "nl.elraccoone.entity-component-system",
33
"displayName": "Entity Component System",
4-
"version": "3.4.1",
4+
"version": "3.4.2",
55
"unity": "2019.1",
66
"description": "A better approach to game design that allows you to concentrate on the actual problems you are solving: the data and behavior that make up your game. By moving from object-oriented to data-oriented design it will be easier for you to reuse the code and easier for others to understand and work on it."
77
}

0 commit comments

Comments
 (0)