public ParticleManager() { Instance = this; _smoke00 = new AnimationSprite("data/Smoke Particle 00.png", 4, 2, 7, true, false); _smoke00.SetOrigin(_smoke00.width / 2f, _smoke00.height / 2f); _smallBlackSmoke00 = new AnimationSprite("data/Small Black Smokes00.png", 5, 5, 10, true, false); _smallBlackSmoke00.SetOrigin(_smallBlackSmoke00.width / 2f, _smallBlackSmoke00.height / 2f); _cartoonCoinsExplosion = new AnimationSprite("data/cartoon coin explosion_image.png", 8, 4, -1, false, false); _cartoonCoinsExplosion.SetOrigin(_cartoonCoinsExplosion.width / 2f, _cartoonCoinsExplosion.height / 2f); _cartoonCoinsExplosion.SetActive(false); _smallSnowFlakes = new SmallSnowFlakeParticle[20]; for (int i = 0; i < _smallSnowFlakes.Length; i++) { var snow = new SmallSnowFlakeParticle(); _smallSnowFlakes[i] = snow; } _smallSnowFlakes2 = new SmallSnowFlakeParticle[20]; for (int i = 0; i < _smallSnowFlakes2.Length; i++) { var snow = new SmallSnowFlakeParticle(); _smallSnowFlakes2[i] = snow; } LocalEvents.Instance.AddListener <StorkLocalEvent>(StorkLocalEventHandler); LocalEvents.Instance.AddListener <LevelLocalEvent>(LevelLocalEventHandler); }
public ParticleManager() { Instance = this; _smoke00 = new AnimationSprite("data/Smoke Particle 00.png", 4, 2, 7, true, false); _smoke00.SetOriginToCenter(); _smallBlackSmoke00 = new AnimationSprite("data/Small Black Smokes00.png", 5, 5, 10, true, false); _smallBlackSmoke00.SetOriginToCenter(); _cartoonCoinsExplosion = new AnimationSprite("data/cartoon coin explosion_image.png", 8, 4, -1, false, false); _cartoonCoinsExplosion.SetOriginToCenter(); _cartoonCoinsExplosion.SetActive(false); _smallSnowFlakes = new SmallSnowFlakeParticle[20]; for (int i = 0; i < _smallSnowFlakes.Length; i++) { var snow = new SmallSnowFlakeParticle(); _smallSnowFlakes[i] = snow; } _smallSnowFlakes2 = new SmallSnowFlakeParticle[20]; for (int i = 0; i < _smallSnowFlakes2.Length; i++) { var snow = new SmallSnowFlakeParticle(); _smallSnowFlakes2[i] = snow; } }