Class Component
- Namespace
- Axolotl2D.GameObjects
- Assembly
- Axolotl2D.dll
Behavior attached to a GameObject and created through DI.
public abstract class Component : IDisposable
- Inheritance
-
Component
- Implements
- Derived
- Inherited Members
Constructors
Component(GameObject)
protected Component(GameObject gameObject)
Parameters
gameObjectGameObject
Properties
Enabled
public bool Enabled { get; set; }
Property Value
GameObject
public GameObject GameObject { get; }
Property Value
HasStarted
public bool HasStarted { get; }
Property Value
IsActiveAndEnabled
public bool IsActiveAndEnabled { get; }
Property Value
Transform
public Transform Transform { get; }
Property Value
Methods
Awake()
public virtual void Awake()
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
FixedUpdate(double)
public virtual void FixedUpdate(double fixedDeltaTime)
Parameters
fixedDeltaTimedouble
LateUpdate(double)
public virtual void LateUpdate(double deltaTime)
Parameters
deltaTimedouble
OnDestroy()
public virtual void OnDestroy()
OnDisable()
public virtual void OnDisable()
OnEnable()
public virtual void OnEnable()
Render()
public virtual void Render()
Start()
public virtual void Start()
Update(double)
public virtual void Update(double deltaTime)
Parameters
deltaTimedouble