| GLMonoBehaviourDestroyUniversal Method |
Destroys given object using either Object.Destroy, or Object.DestroyImmediate,
depending on whether Application.isPlaying is true or not. This is useful when
writing methods that is used by both editor tools and the game itself.
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax [VersionAttribute(2, 5, 0)]
public static void DestroyUniversal(
Object obj
)
Parameters
- obj
- Type: Object
The object to destroy.
See Also