Пример #1
0
    public void Die()
    {
        GetComponent <MeshRenderer>().enabled = true;
        tBuf.Die();
        vBuf.Die();
        hBuf.Die();

        baseUpdater.Die();
        hairUpdater.Die();

        vbt.Die();
        hbt.Die();

        hdo.Die();

        vbh.Die();
        hbh.Die();

        dhbwl.Die();
        dvbwl.Die();
        dvbwt.Die();

        Destroy(tBuf);
        Destroy(vBuf);
        Destroy(hBuf);

        Destroy(baseUpdater);
        Destroy(hairUpdater);

        Destroy(vbt);
        Destroy(hbt);

        Destroy(vbh);
        Destroy(hbh);

        Destroy(dhbwl);
        Destroy(dvbwl);
    }
Пример #2
0
    public void Die()
    {
        tBuf.Die();
        vBuf.Die();

        updater.Die();

        vbt.Die();
        vbh.Die();

        vdo.Die();

        dvbwt.Die();

        Destroy(tBuf);
        Destroy(vBuf);
        Destroy(updater);
        Destroy(vbt);
        Destroy(vbh);
        Destroy(vdo);
        Destroy(dvbwt);

        GetComponent <MeshRenderer>().enabled = true;
    }