This commit is contained in:
2026-02-11 20:50:03 +05:30
parent df77848ca5
commit 614c38bdaf
2303 changed files with 256620 additions and 4 deletions
@@ -0,0 +1,23 @@
using UnityEngine;
namespace Mirror.Examples.Common.Controllers.Player
{
[AddComponentMenu("Network/Player Controller RB (Reliable)")]
[RequireComponent(typeof(NetworkTransformReliable))]
public class PlayerControllerRBReliable : PlayerControllerRBBase
{
protected override void OnValidate()
{
if (Application.isPlaying) return;
base.OnValidate();
Reset();
}
public override void Reset()
{
base.Reset();
GetComponent<NetworkTransformReliable>().useFixedUpdate = true;
}
}
}