This repository has been archived on 2025-06-18. You can view files and clone it, but cannot push or open issues or pull requests.
Files
skolavdf/phr/StickGame/Assets/FishNet/Runtime/Transporting/NetworkReaderLoop.cs
2024-03-24 22:21:16 +01:00

33 lines
731 B
C#

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();
}
}
}