Abstract Protected constructor!export default class ExampleBehaviour extends AirshipBehaviour {
textComponent!: TMP_Text;
Awake() {
this.textComponent = this.gameObject.GetComponent<TMP_Text>();
}
}
Readonly gameThe GameObject this behaviour is attached to.
Readonly transformThe Transform this behaviour is attached to.
Static Get
A TypeScript parallel to a component Singleton for Airship - no boilerplate required
default.Example declaration:
The singleton can then be retrieved via