예제 #1
0
 public void init(ParticleGroup group, int indexShape, Color color, float metallic, float smoothness)
 {
     this.group          = group;
     this.initIndexShape = indexShape;
     this.color          = color;
     this.metallic       = metallic;
     this.smoothness     = smoothness;
 }
예제 #2
0
        private ParticleGroup paticles;        //パーティクル用

        public GameDevice(ContentManager content, GraphicsDevice graphics)
        {
            resouceManager = new ResouceManager(content);
            Renderer_2D    = new Renderer_2D(content, graphics);
            inputState     = new InputState();
            Sound          = new Sound();
            paticles       = new ParticleGroup(graphics, this);
            this.graphics  = graphics;
            Initialize();
        }
예제 #3
0
    public GameObject SpawnParticle(ParticleGroup particle, Vector3 spawnPosition, Quaternion spawnRotation)
    {
        GameObject obj = PoolManager.instance.ReuseObject(particle.particlePrefab, spawnPosition, spawnRotation);

        if (obj.GetComponent <ParticleExplosion>())
        {
            obj.GetComponent <ParticleExplosion>().Explode();
        }
        return(obj);
    }
예제 #4
0
 public void InitiatePool(ParticleGroup particle)
 {
     PoolManager.instance.CreatePool(particle.particlePrefab, particle.amount);
 }