コード例 #1
0
        /// <summary>
        /// Unload contents
        /// </summary>
        public override void UnloadContent()
        {
            if (Torus != null)
            {
                Torus.Dispose();
            }
            Torus = null;

            if (Sphere != null)
            {
                Sphere.Dispose();
            }
            Sphere = null;

            if (Floor != null)
            {
                Floor.Dispose();
            }
            Floor = null;

            if (Shader != null)
            {
                Shader.Dispose();
            }
            Shader = null;

            if (Moon != null)
            {
                Moon.Dispose();
            }
            Moon = null;

            if (Mars != null)
            {
                Mars.Dispose();
            }
            Mars = null;

            if (Marble != null)
            {
                Marble.Dispose();
            }
            Marble = null;

            if (Batch != null)
            {
                Batch.Dispose();
            }
            Batch = null;

            if (Font != null)
            {
                Font.Dispose();
            }
            Font = null;

            if (Stream != null)
            {
                Stream.Dispose();
            }
            Stream = null;
        }