Exemple #1
0
 internal void Validate(WaterRipplesParticleEffectParameters parameters)
 {
     SpawnOffset    = parameters.SpawnOffset;
     StopAction     = parameters.StopAction;
     CanExpandPool  = parameters.CanExpandPool;
     ParticleSystem = parameters.ParticleSystem;
     PoolSize       = parameters.PoolSize;
     IsActive       = parameters.IsActive;
 }
Exemple #2
0
        public WaterRipplesParticleEffect(WaterRipplesParticleEffectParameters parameters, Transform poolParent)
        {
            _isActive       = parameters.IsActive;
            _particleSystem = parameters.ParticleSystem;
            _spawnOffset    = parameters.SpawnOffset;
            _stopAction     = parameters.StopAction;
            _poolSize       = parameters.PoolSize;
            _canExpandPool  = parameters.CanExpandPool;

            _poolRootParent = poolParent;

            if (_isActive)
            {
                CreatePool();
            }
        }