protected override void OnTCEnable()
        {
            m_forceTarget = target as TCForce;

            if (m_forceTarget != null)
            {
                m_forces = new List <TCForce>(m_forceTarget.GetComponents <TCForce>());
            }
            m_primeForce = m_forces[0];
            m_forces.RemoveAt(0);

            m_openClose      = GetOpenClose();
            m_forceVisualize = new TCNoiseForceVisualize(m_forceTarget);
        }
Beispiel #2
0
        protected override void OnTCEnable()
        {
            m_tabGroup = GetOpenClose();

            foreach (var system in Targets)
            {
                if (m_drawers.ContainsKey(system))
                {
                    continue;
                }

                var emitter = system.Emitter;

                if (emitter != null)
                {
                    m_drawers[system] = new TCWireframeDrawer(emitter.EmitMesh);
                }
            }
        }
 protected override void OnTCEnable()
 {
     m_tabGroup = GetOpenClose();
 }