Skip to content

Components

AlienTina edited this page Oct 12, 2023 · 4 revisions

Creation:

Component component = new Component(parent);

  • Component.Active(bool): Component's update and draw functions are sometimes made to stop when this variable isn't true.

  • Component.Start()(function): Gets called right before being added to a GameObject.

  • Component.Update(GameTime)(function): Gets called every frame.

  • Component.Draw()(function): Handles rendering.

Clone this wiki locally