aha
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Mirror.Examples.Common.Controllers.Player
|
||||
{
|
||||
[AddComponentMenu("Network/Player Controller RB (Hybrid)")]
|
||||
[RequireComponent(typeof(NetworkTransformHybrid))]
|
||||
public class PlayerControllerRBHybrid : PlayerControllerRBBase
|
||||
{
|
||||
protected override void OnValidate()
|
||||
{
|
||||
if (Application.isPlaying) return;
|
||||
base.OnValidate();
|
||||
|
||||
Reset();
|
||||
}
|
||||
|
||||
public override void Reset()
|
||||
{
|
||||
base.Reset();
|
||||
GetComponent<NetworkTransformHybrid>().useFixedUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user