unity-atoms/Assets/UnityAtoms/GameActions/SetVariableValue/SetVariableValue.cs

18 lines
477 B
C#
Raw Normal View History

2018-10-30 15:05:06 -04:00
using UnityEngine;
namespace UnityAtoms
{
public abstract class SetVariableValue<T, V, R, E1, E2> : VoidAction where E1 : GameEvent<T> where E2 : GameEvent<T, T> where V : ScriptableObjectVariable<T, E1, E2> where R : ScriptableObjectReference<T, V, E1, E2>
{
[SerializeField]
private V Variable;
[SerializeField]
private R Value;
public override void Do()
{
Variable.Value = Value.Value;
}
}
}