initial commit

This commit is contained in:
2025-08-05 14:42:26 +03:00
commit 9907aebe36
29 changed files with 2040 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using Engine.Core;
using Engine.Core.Debug;
namespace MyUniverse.Shared.Behaviours;
public class ExampleBehaviour : Behaviour, IFirstFrameUpdate, ILastFrameUpdate, IUpdate
{
private ILogger logger = null!;
public void FirstActiveFrame()
{
logger = Universe.FindRequiredBehaviour<ILogger>();
logger.Log(this, "First Frame");
}
public void LastActiveFrame()
{
logger.Log(this, $"Last Frame");
}
public void Update()
{
logger.Log(this, "Frame");
}
}