Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit e4146ea

Browse files
Fixed issue where sometimes assigning values to references wouldn't update them
1 parent d2caab6 commit e4146ea

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Assets/SO Architecture/References/BaseReference.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,17 @@ public TBase Value
2626
set
2727
{
2828
if (!_useConstant && _variable != null)
29+
{
2930
_variable.Value = value;
30-
else if (_useConstant)
31+
}
32+
else
33+
{
34+
_useConstant = true;
3135
_constantValue = value;
36+
}
3237
}
3338
}
34-
public bool IsValueDefined
39+
public bool IsValueDefined
3540
{
3641
get
3742
{

0 commit comments

Comments
 (0)