Jeff Campbell e5f6659eda Removed unused namepaces
* Removed unused namespaces across all files in Unity.Atoms assembly.
* Removed unused namspaces in runtime and Test assembly code.
2019-04-07 11:15:23 +02:00

21 lines
545 B
C#

using UnityEngine;
using UnityAtoms.Extensions;
namespace UnityAtoms.Examples
{
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
public class DecreasePlayersHealth : Collider2DAction
{
[SerializeField]
private StringConstant TagPlayer = null;
public override void Do(Collider2D collider)
{
if (collider.gameObject.HasTag(TagPlayer))
{
collider.GetComponent<PlayerHealth>().Health.Value -= 10;
}
}
}
}