fix(SyncSet): Change Callback to Action

This commit is contained in:
MrGadget 2024-03-24 10:10:29 -04:00
parent bed7e81555
commit 527b754061
2 changed files with 3 additions and 4 deletions

View File

@ -6,8 +6,7 @@ namespace Mirror
{
public class SyncSet<T> : SyncObject, ISet<T>
{
public delegate void SyncSetChanged(Operation op, T item);
public event SyncSetChanged Callback;
public Action<Operation, T> Callback;
protected readonly ISet<T> objects;

View File

@ -112,7 +112,7 @@ public void CallbackTest()
{
bool called = false;
clientSyncSet.Callback += (op, item) =>
clientSyncSet.Callback = (op, item) =>
{
called = true;
@ -131,7 +131,7 @@ public void CallbackRemoveTest()
{
bool called = false;
clientSyncSet.Callback += (op, item) =>
clientSyncSet.Callback = (op, item) =>
{
called = true;