chore: sync project assets and ignore generated caches
This commit is contained in:
48
project/Assets/Scripts/TickLogProbe.cs
Normal file
48
project/Assets/Scripts/TickLogProbe.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using XCEngine;
|
||||
|
||||
namespace ProjectScripts
|
||||
{
|
||||
public sealed class TickLogProbe : MonoBehaviour
|
||||
{
|
||||
public int FixedUpdateCount;
|
||||
public int UpdateCount;
|
||||
public int LateUpdateCount;
|
||||
|
||||
public void Awake()
|
||||
{
|
||||
Debug.Log("[Project TickLogProbe] Awake");
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
Debug.Log("[Project TickLogProbe] Start");
|
||||
}
|
||||
|
||||
public void FixedUpdate()
|
||||
{
|
||||
FixedUpdateCount += 1;
|
||||
if (FixedUpdateCount <= 3)
|
||||
{
|
||||
Debug.Log("[Project TickLogProbe] FixedUpdate " + FixedUpdateCount);
|
||||
}
|
||||
}
|
||||
|
||||
public void Update()
|
||||
{
|
||||
UpdateCount += 1;
|
||||
if (UpdateCount <= 3)
|
||||
{
|
||||
Debug.Log("[Project TickLogProbe] Update " + UpdateCount);
|
||||
}
|
||||
}
|
||||
|
||||
public void LateUpdate()
|
||||
{
|
||||
LateUpdateCount += 1;
|
||||
if (LateUpdateCount <= 3)
|
||||
{
|
||||
Debug.Log("[Project TickLogProbe] LateUpdate " + LateUpdateCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user