mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Issue #1 - No boxing conversion from Color/Vector2/Vector3
This commit is contained in:
parent
caa7d483e4
commit
dc98c369be
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user