Add StickGame Assets
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using FishNet.Managing.Timing;
|
||||
using UnityEngine;
|
||||
|
||||
namespace FishNet.Transporting
|
||||
{
|
||||
[DisallowMultipleComponent]
|
||||
[DefaultExecutionOrder(short.MinValue)]
|
||||
internal class NetworkReaderLoop : MonoBehaviour
|
||||
{
|
||||
#region Private.
|
||||
/// <summary>
|
||||
/// TimeManager this loop is for.
|
||||
/// </summary>
|
||||
private TimeManager _timeManager;
|
||||
#endregion
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_timeManager = GetComponent<TimeManager>();
|
||||
}
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
_timeManager.TickFixedUpdate();
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
_timeManager.TickUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user