aha
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
using Mirror;
|
||||
using StinkySteak.NetcodeBenchmark;
|
||||
using UnityEngine;
|
||||
|
||||
namespace StinkySteak.MirrorBenchmark
|
||||
{
|
||||
public class WanderMoveBehaviour : NetworkBehaviour
|
||||
{
|
||||
[SerializeField] private BehaviourConfig _config;
|
||||
private WanderMoveWrapper _wrapper;
|
||||
|
||||
public override void OnStartServer()
|
||||
{
|
||||
if (isClient) return;
|
||||
|
||||
_config.ApplyConfig(ref _wrapper);
|
||||
_wrapper.NetworkStart(transform);
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
if (isClient) return;
|
||||
|
||||
_wrapper.NetworkUpdate(transform);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user