private void DoDestroy() { if (updateBehaviour) { UnityObject.Destroy(updateBehaviour.gameObject); } updateBehaviour = null; }
private void OnInit() { updateBehaviour = PersistentUObjectHelper.CreateComponent <UpdateBehaviour>(); }