Cleaner sync
This commit is contained in:
@@ -40,11 +40,16 @@ public class TestBall : SyncedObject
|
||||
public void Initialize(NetworkManager networkManager)
|
||||
{
|
||||
this.networkManager = networkManager;
|
||||
|
||||
sumOfDt = networkManager.SyncedTime;
|
||||
|
||||
amountUp = 0;
|
||||
loopOffset = 0;
|
||||
|
||||
jumps = new float[10];
|
||||
jumpsIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
public override void SyncedUpdate()
|
||||
{
|
||||
SetProgress(GetProgress()); // A quick test that these methods work correctly
|
||||
|
||||
Reference in New Issue
Block a user