Implemented event subscribers
This commit is contained in:
@@ -11,5 +11,7 @@ namespace Marro.PacManUdon
|
||||
public virtual void SyncedUpdate() { }
|
||||
public abstract void CollectSyncedData(byte[] data, ref int index, NetworkEventType eventType);
|
||||
public abstract bool WriteSyncedData(byte[] data, ref int index, NetworkEventType eventType);
|
||||
|
||||
protected void SubscribeToEvent(NetworkEventType eventType) => networkManager.SubscribeToEvent(this, eventType);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user