addComponent(_:)
Adds a component instance to the component system.
Declaration
func addComponent(_ component: ComponentType)Parameters
- component:
An instance of a Gkcomponent subclass.
Discussion
The component instance must be of the same GKComponent subclass specified by the componentClass property.