Beispiel #1
0
 /// <summary>
 /// Destroys the given content and spawns another gameObject as a particle system effect.
 /// </summary>
 /// <param name="content">Content to destroy, assumed to be this content.</param>
 public void DestroyContent(GameObject content)
 {
     Instantiate(_destroyedContentEffect, transform.position, Quaternion.identity);
     #if PLATFORM_LUMIN
     BallTransformBinding.UnBind();
     #endif
     Destroy(gameObject);
 }
Beispiel #2
0
        /// <summary>
        /// Unbinds each binding and stops the MLPersistentCoordinateFrames api.
        /// </summary>
        private void OnDestroy()
        {
            #if PLATFORM_LUMIN
            _visualTransformBinding.UnBind();
            _visualTextBinding.UnBind();

            MLPersistentCoordinateFrames.Stop();
            #endif
        }