mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
18 lines
477 B
C#
18 lines
477 B
C#
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|