GetInstance() public static method

public static GetInstance ( ) : ParticleManager
return ParticleManager
Ejemplo n.º 1
0
        public void Emit()
        {
            if (count > 80)
            {
                return;
            }

            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life);
        }
Ejemplo n.º 2
0
        public void Tail(Particle parent)
        {
            ParticleManager particlemanager = ParticleManager.GetInstance();
            Particle        child           = particlemanager.Emit(tail_logic, (float)rand.NextDouble());

            if (child == null)
            {
                return;
            }

            child.scale    = parent.scale;
            child.position = parent.position;
        }
Ejemplo n.º 3
0
        public void Emit()
        {
            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life * 0.5f + life * 0.5f);
        }