Ejemplo n.º 1
0
    private void OnSnappedPlateGrabbed(object sender, InteractableObjectEventArgs e)
    {
        // Destroy all current joints
        foreach (Joint joint in snappedPlate.GetComponents <Joint>())
        {
            Destroy(joint);
        }

        UnregisterPlateWaveGenerators();
        LoadPreviousState();

        snappedPlate.InteractableObjectGrabbed -= OnSnappedPlateGrabbed;
        snappedPlate = null;
    }