Interface IComponent<T>
- Namespace
- Alis.Core.Ecs.Component
- Assembly
- Alis.dll
The component interface
public interface IComponent<T> : IEnabled, IIdentifier, IRuntimeType Parameters
T
Implements
Properties
GameObject
Gets or sets the value of the game object
T GameObject { get; set; }Property Value
- T
Methods
Attach(T)
Attaches the game object
void Attach(T gameObject)Parameters
gameObjectT-
The game object
OnCollisionEnter(T)
Ons the collision enter using the specified game object
void OnCollisionEnter(T gameObject)Parameters
gameObjectT-
The game object
OnCollisionExit(T)
Ons the collision exit using the specified game object
void OnCollisionExit(T gameObject)Parameters
gameObjectT-
The game object
OnPressDownKey(KeyCodes)
Ons the press down key using the specified key
void OnPressDownKey(KeyCodes key)Parameters
keyKeyCodes-
The key
OnPressKey(KeyCodes)
Ons the press key using the specified key
void OnPressKey(KeyCodes key)Parameters
keyKeyCodes-
The key
OnReleaseKey(KeyCodes)
Ons the release key using the specified key
void OnReleaseKey(KeyCodes key)Parameters
keyKeyCodes-
The key