ougge/src-csharp/Component.cs
2025-04-18 18:24:02 +05:00

17 lines
366 B
C#

using System;
namespace Ougge;
public abstract class Component {
private GameObject _gameObject;
internal Component(GameObject gameObject)
{
_gameObject = gameObject;
}
public GameObject Owner { get => _gameObject.IsDestroyed ? throw new Exception("GameObject") : _gameObject; }
public virtual void Update(double deltaTime) {}
}