GameObject and Component
This commit is contained in:
15
src-csharp/ExampleComponent.cs
Normal file
15
src-csharp/ExampleComponent.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
|
||||
namespace Ougge;
|
||||
|
||||
public class ExampleComponent : Component
|
||||
{
|
||||
public ExampleComponent(GameObject gameObject) : base(gameObject)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Update(double deltaTime)
|
||||
{
|
||||
Console.WriteLine($"C# deltaTime {deltaTime} object id {Owner.Id}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user