mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
OnDirty simplified now that it's a class with a default implementation
This commit is contained in:
parent
331369c52d
commit
4590a25e0e
@ -20,7 +20,7 @@ public abstract class SyncObject
|
||||
// => Weaver calls InitSyncObject and replaces it
|
||||
// => if it was not replaced, then it was a runtime change which is not allowed.
|
||||
// ===> this way we can show SyncVar<T> in the Inspector!
|
||||
public virtual Action OnDirty { get; set; } = () =>
|
||||
public Action OnDirty = () =>
|
||||
throw new Exception("SyncObject was not initialized. Do not create 'new SyncObject's at runtime. Define them once, then Weaver will initialize them.");
|
||||
|
||||
/// <summary>Used internally to check if we are currently tracking changes.</summary>
|
||||
|
Loading…
Reference in New Issue
Block a user