예제 #1
0
        public int PlayParticleWithParent(string particleName, Vector3 localPos, bool bRecycle = true, Transform parTrans = null)
        {
            ParticleUnit particleUnit = ParticleUnit.Allocate();

            particleUnit.SetParticle(particleName, localPos, bRecycle, parTrans);
            m_ParticleUnitList.Add(particleUnit);
            return(particleUnit.m_ID);
        }
예제 #2
0
        public ParticleUnit PlayParticle2(string particleName, Vector3 Pos, bool bRecycle = true)
        {
            ParticleUnit particleUnit = ParticleUnit.Allocate();

            particleUnit.SetParticle(particleName, Pos, bRecycle);
            m_ParticleUnitList.Add(particleUnit);
            return(particleUnit);
        }