new Component(pComponentType, pComponentOwner)
Top level object shared by every components.
You need to add the created component to the game object owner.
Parameters:
Name | Type | Description |
---|---|---|
pComponentType |
string | Type of the component to add. |
pComponentOwner |
FM.GameObject | Game object that owns the component. |
- Source:
Members
-
name :FM.ComponentTypes
-
Component's name.
Type:
- Source:
-
owner :FM.GameObject
-
Component's owner.
Type:
- Source:
Methods
-
destroy()
-
Destroy the component and its objects.
- Source: