38 lines
769 B
C#
38 lines
769 B
C#
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();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
} |