qc.Behaviour#destroy

Prototype

  • void destroy(void);

Description

Destroy the behaviour. When destroyed, the function 'onDestroy' will be called.

Sample