r2mods/ilspy_dump/ror2_csproj/Utility_ScreamPositionDiff.cs

22 lines
393 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
using UnityEngine.Networking;
public class Utility_ScreamPositionDiff : MonoBehaviour
{
private Vector3 _prevPosition;
private void OnEnable()
{
_prevPosition = base.transform.position;
}
private void FixedUpdate()
{
Vector3 position = base.transform.position;
if (!NetworkServer.active && _prevPosition != position)
{
_prevPosition = position;
}
}
}