mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 09:08:23 -05:00
19 lines
478 B
C#
19 lines
478 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;
|
|
}
|
|
}
|
|
} |