Browse Source

revert dispatchonset not wise change

tags/2.7
sebas77 6 years ago
parent
commit
525e93fbd5
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      Svelto.ECS/Dispatcher/DispatchOnSet.cs

+ 6
- 6
Svelto.ECS/Dispatcher/DispatchOnSet.cs View File

@@ -23,11 +23,11 @@ namespace Svelto.ECS

_subscribers.Invoke(_senderID, value);
}
}

public static implicit operator T(DispatchOnSet<T> dispatch)
{
return dispatch._value;
get
{
return _value;
}
}
public void NotifyOnValueSet(System.Action<int, T> action)
@@ -40,8 +40,8 @@ namespace Svelto.ECS
_subscribers -= action;
}

protected T _value;
readonly int _senderID;
protected T _value;
readonly int _senderID;

WeakEvent<int, T> _subscribers;
}


Loading…
Cancel
Save