Exemplo n.º 1
0
        public void OnDestroy()
        {
            m_skyNode.OnDestroy();
            UnityEngine.Object.Destroy(m_skyNode);

            if (hasOcean && Core.Instance.useOceanShaders)
            {
                m_oceanNode.OnDestroy();
                UnityEngine.Object.Destroy(m_oceanNode);
            }
        }
Exemplo n.º 2
0
        public void OnDestroy()
        {
            m_skyNode.OnDestroy();
            UnityEngine.Object.Destroy(m_skyNode);

            UnityEngine.Object.Destroy(m_sunNode);

            if (hasOcean)
            {
                m_oceanNode.OnDestroy();
                UnityEngine.Object.Destroy(m_oceanNode);
            }
        }