mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
18 lines
421 B
C#
18 lines
421 B
C#
using UnityEngine;
|
|
using UnityAtoms.BaseAtoms;
|
|
|
|
namespace UnityAtoms.Examples
|
|
{
|
|
/// <summary>
|
|
/// An IntAction that Debug.Logs the value it recieves.
|
|
/// </summary>
|
|
[CreateAssetMenu(menuName = "Unity Atoms/Examples/Intro/Health Logger")]
|
|
public sealed class HealthLogger : IntAction
|
|
{
|
|
public override void Do(int health)
|
|
{
|
|
Debug.Log("<3: " + health);
|
|
}
|
|
}
|
|
}
|