feat: expand editor scripting asset and viewport flow
This commit is contained in:
48
managed/GameScripts/TickLogProbe.cs
Normal file
48
managed/GameScripts/TickLogProbe.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user