Beispiel #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>();
        }
Beispiel #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>();
        }
 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>();
 }