Add StickGame Assets
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using FishNet.Managing.Timing;
|
||||
using UnityEngine;
|
||||
|
||||
namespace FishNet.Transporting
|
||||
{
|
||||
[DisallowMultipleComponent]
|
||||
[DefaultExecutionOrder(short.MaxValue)]
|
||||
internal class NetworkWriterLoop : MonoBehaviour
|
||||
{
|
||||
#region Private.
|
||||
/// <summary>
|
||||
/// TimeManager this loop is for.
|
||||
/// </summary>
|
||||
private TimeManager _timeManager;
|
||||
#endregion
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
_timeManager = GetComponent<TimeManager>();
|
||||
}
|
||||
|
||||
private void LateUpdate()
|
||||
{
|
||||
Iterate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs read on transport.
|
||||
/// </summary>
|
||||
private void Iterate()
|
||||
{
|
||||
_timeManager.TickLateUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user