Пример #1
0
 /// <summary>
 /// Remove a JBehaviour
 /// </summary>
 /// <param name="jBehaviour"></param>
 public static void RemoveJBehaviour(JBehaviour jBehaviour)
 {
     if (Application.isEditor)
     {
         Tools.DestroyHotComponent(jBehaviour.gameObject, jBehaviour);
     }
     jBehaviour.Destroy();
 }
Пример #2
0
 /// <summary>
 /// Remove a JBehaviour
 /// </summary>
 /// <param name="jBehaviour"></param>
 public static void RemoveJBehaviour(JBehaviour jBehaviour)
 {
     if (Application.isEditor)
     {
         UnityEngine.Object.Destroy(GetJBehaviourInEditor(jBehaviour));
     }
     jBehaviour.Destroy();
 }