Exemple #1
0
        void OnDisable()
        {
            GerstnerWavesJobs.Cleanup();

            if (reflection)
            {
                reflection.enabled = false;
            }

            if (instance == this)
            {
                instance = null;
            }
        }