mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-22 08:08:51 -05:00
Tweak
This commit is contained in:
parent
9a8f7495fa
commit
c71fe4fa60
@ -27,6 +27,8 @@ public class DecreaseHealth : MonoBehaviour
|
||||
|
||||
public void Do(Collider2D collider)
|
||||
{
|
||||
if (collider == null) return;
|
||||
|
||||
if (collider.gameObject.HasAnyTag(_tags))
|
||||
{
|
||||
collider.GetComponent<UnitHealth>().Health -= _decreaseBy;
|
||||
|
@ -13,7 +13,7 @@ namespace UnityAtoms
|
||||
{
|
||||
for (var i = 0; i < _variables.Count; ++i)
|
||||
{
|
||||
_variables[i].Reset();
|
||||
_variables[i].Reset(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user