Ejemplo n.º 1
0
        public static void Destroy()
        {
            if (instance)
            {
                if (instance.studioSystem.isValid())
                {
                    if (instance.loadAllSampleData)
                    {
                        instance.UnloadAllBankSampleData();
                    }
                    instance.studioSystem.release();
                    instance.studioSystem.clearHandle();
                }
                DestroyImmediate(instance.gameObject);
            }

            initException = null;
            instance      = null;
        }