コード例 #1
0
        void OnDestroy()
        {
            RenderEvent.RemoveRenderEvent(Camera.main, DrawOutline);

            if (Spheres != null)
            {
                for (int i = 0; i < Spheres.Count; i++)
                {
                    DestroyImmediate(Spheres[i]);
                }
            }
        }
コード例 #2
0
        void OnDestroy()
        {
            RenderEvent.RemoveRenderEvent(Camera.main, DrawOutline);

            if (FluidSpheres != null)
            {
                for (int i = 0; i < FluidSpheres.Length; i++)
                {
                    DestroyImmediate(FluidSpheres[i]);
                    FluidSpheres[i] = null;
                }
            }

            if (BoundarySpheres != null)
            {
                for (int i = 0; i < BoundarySpheres.Length; i++)
                {
                    DestroyImmediate(BoundarySpheres[i]);
                    BoundarySpheres[i] = null;
                }
            }
        }
コード例 #3
0
 void OnDestroy()
 {
     RenderEvent.RemoveRenderEvent(Camera.main, DrawOutline);
 }