예제 #1
0
 private void DoDestroy()
 {
     if (updateBehaviour)
     {
         UnityObject.Destroy(updateBehaviour.gameObject);
     }
     updateBehaviour = null;
 }
예제 #2
0
 private void OnInit()
 {
     updateBehaviour = PersistentUObjectHelper.CreateComponent <UpdateBehaviour>();
 }