49 lines
1.0 KiB
C#
49 lines
1.0 KiB
C#
using XCEngine;
|
|
|
|
namespace Gameplay
|
|
{
|
|
public sealed class TickLogProbe : MonoBehaviour
|
|
{
|
|
public int FixedUpdateCount;
|
|
public int UpdateCount;
|
|
public int LateUpdateCount;
|
|
|
|
public void Awake()
|
|
{
|
|
Debug.Log("[TickLogProbe] Awake");
|
|
}
|
|
|
|
public void Start()
|
|
{
|
|
Debug.Log("[TickLogProbe] Start");
|
|
}
|
|
|
|
public void FixedUpdate()
|
|
{
|
|
FixedUpdateCount += 1;
|
|
if (FixedUpdateCount <= 3)
|
|
{
|
|
Debug.Log("[TickLogProbe] FixedUpdate " + FixedUpdateCount);
|
|
}
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
UpdateCount += 1;
|
|
if (UpdateCount <= 3)
|
|
{
|
|
Debug.Log("[TickLogProbe] Update " + UpdateCount);
|
|
}
|
|
}
|
|
|
|
public void LateUpdate()
|
|
{
|
|
LateUpdateCount += 1;
|
|
if (LateUpdateCount <= 3)
|
|
{
|
|
Debug.Log("[TickLogProbe] LateUpdate " + LateUpdateCount);
|
|
}
|
|
}
|
|
}
|
|
}
|