unity-atoms/Examples/Assets/Intro/GameObjects/Harmful/DecreasePlayersHealth.cs
Adam Ramberg 5d9f8dca71 WIP
2020-03-01 21:32:52 +01:00

22 lines
638 B
C#

// using UnityEngine;
// using UnityAtoms.Tags;
// using UnityEngine.Serialization;
// namespace UnityAtoms.Examples
// {
// [CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Decrease Players Health")]
// public sealed 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;
// }
// }
// }
// }