Table of Contents

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

gameObject GameObject

Properties

Enabled

public bool Enabled { get; set; }

Property Value

bool

GameObject

public GameObject GameObject { get; }

Property Value

GameObject

HasStarted

public bool HasStarted { get; }

Property Value

bool

IsActiveAndEnabled

public bool IsActiveAndEnabled { get; }

Property Value

bool

Transform

public Transform Transform { get; }

Property Value

Transform

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

fixedDeltaTime double

LateUpdate(double)

public virtual void LateUpdate(double deltaTime)

Parameters

deltaTime double

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

deltaTime double