Example #1
0
    public override void Collapse()
    {
        trail.transform.parent      = null;
        breakSound.transform.parent = trail.transform;
        breakSound.Play();
        Trail trailScript = trail.GetComponent <Trail>();

        trailScript.StartCoroutine(trailScript.AutoDestroy());

        Destroy(markInstance);
        Destroy(gameObject);
    }