Issue #1 - No boxing conversion from Color/Vector2/Vector3

This commit is contained in:
Adam Ramberg 2018-11-16 18:22:17 +01:00
parent caa7d483e4
commit dc98c369be
3 changed files with 21 additions and 3 deletions

View File

@ -3,5 +3,11 @@ using UnityEngine;
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Color")]
public class ColorVariable : EquatableScriptableObjectVariable<Color, ColorEvent, ColorColorEvent> { }
public class ColorVariable : ScriptableObjectVariable<Color, ColorEvent, ColorColorEvent>
{
protected override bool AreEqual(Color first, Color second)
{
return first.Equals(second);
}
}
}

View File

@ -3,5 +3,11 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector2")]
public class Vector2Variable : EquatableScriptableObjectVariable<Vector2, Vector2Event, Vector2Vector2Event> { }
public class Vector2Variable : ScriptableObjectVariable<Vector2, Vector2Event, Vector2Vector2Event>
{
protected override bool AreEqual(Vector2 first, Vector2 second)
{
return first.Equals(second);
}
}
}

View File

@ -3,5 +3,11 @@
namespace UnityAtoms
{
[CreateAssetMenu(menuName = "Unity Atoms/Variables/Vector3")]
public class Vector3Variable : EquatableScriptableObjectVariable<Vector3, Vector3Event, Vector3Vector3Event> { }
public class Vector3Variable : ScriptableObjectVariable<Vector3, Vector3Event, Vector3Vector3Event>
{
protected override bool AreEqual(Vector3 first, Vector3 second)
{
return first.Equals(second);
}
}
}