Exemplo n.º 1
0
        void CreateSubEmitter(SerializedProperty objectRefProp, int index, SubEmitterType type)
        {
            GameObject subEmitter = m_ParticleSystemUI.m_ParticleEffectUI.CreateParticleSystem(m_ParticleSystemUI.m_ParticleSystems[0], type);

            subEmitter.name = "SubEmitter" + index;
            objectRefProp.objectReferenceValue = subEmitter.GetComponent <ParticleSystem>();
        }
Exemplo n.º 2
0
        private void CreateAndAssignSubEmitter(SerializedProperty objectRefProp, SubEmitterType type)
        {
            GameObject obj2 = base.m_ParticleSystemUI.m_ParticleEffectUI.CreateParticleSystem(base.m_ParticleSystemUI.m_ParticleSystem, type);

            obj2.name = "SubEmitter";
            objectRefProp.objectReferenceValue = obj2.GetComponent <ParticleSystem>();
        }
Exemplo n.º 3
0
 private void CreateSubEmitter(SerializedProperty objectRefProp, int index, SubEmitterType type)
 {
     GameObject obj2 = base.m_ParticleSystemUI.m_ParticleEffectUI.CreateParticleSystem(base.m_ParticleSystemUI.m_ParticleSystem, type);
     obj2.name = "SubEmitter" + index;
     objectRefProp.objectReferenceValue = obj2.GetComponent<ParticleSystem>();
 }