public void Init(BulletType bulletType) { switch (bulletType) { case BulletType.Enemy_Boss_1: _effect = BulletEffectPoolConfig.Single.Boss1Pool.Spawn(); break; } if (_effect == null) { return; } _effect.Init(transform); _effect.Begin(); }
protected override void OnEnable() { base.OnEnable(); _effectView.Begin(); InitSprite(); }