예제 #1
0
        public void OnDestroy()
        {
            if (!ReferenceEquals(m_skyNode, null))
            {
                m_skyNode.Cleanup();
                Component.Destroy(m_skyNode);
            }

            if (!ReferenceEquals(m_oceanNode, null))
            {
                m_oceanNode.Cleanup();
                Component.Destroy(m_oceanNode);
            }
        }
예제 #2
0
파일: Manager.cs 프로젝트: gfmvs/Scatterer
        public void OnDestroy()
        {
            m_skyNode.Cleanup();

            Component.Destroy(m_skyNode);

            UnityEngine.Object.Destroy(m_skyNode);

            if (hasOcean && Core.Instance.useOceanShaders)
            {
                m_oceanNode.Cleanup();
                UnityEngine.Object.Destroy(m_oceanNode);
            }
        }