Working via NetworkManager
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Marro.PacManUdon
|
||||
}
|
||||
|
||||
[RequireComponent(typeof(Animator))]
|
||||
public class Intermission2Pole : UdonSharpBehaviour
|
||||
public class Intermission2Pole : SyncedObject
|
||||
{
|
||||
Animator _animator;
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace Marro.PacManUdon
|
||||
SetStrechLevel(PoleStrechLevels.None);
|
||||
}
|
||||
|
||||
public void FixedUpdate()
|
||||
public override void SyncedUpdate()
|
||||
{
|
||||
if (!_ghost.gameObject.activeInHierarchy)
|
||||
{
|
||||
@@ -134,5 +134,15 @@ namespace Marro.PacManUdon
|
||||
{
|
||||
return (Vector2)transform.localPosition;
|
||||
}
|
||||
|
||||
public override void AppendSyncedData(byte[][] data, ref int index, NetworkEventType eventType)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override bool SetSyncedData(byte[] data, ref int index, NetworkEventType eventType)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user