This commit is contained in:
2025-06-16 15:14:23 +02:00
commit 074e590073
3174 changed files with 428263 additions and 0 deletions

View File

@ -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;
}
}
}