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; }
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(); }
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); }
public void InitiatePool(ParticleGroup particle) { PoolManager.instance.CreatePool(particle.particlePrefab, particle.amount); }