Пример #1
0
 void Init()
 {
     _pSystem            = GetComponent <ParticleSystem>();
     _pRenderer          = GetComponent <ParticleSystemRenderer>();
     _lightDetector      = GetComponent <VoxelLightingReceiver>();
     _instanceMat        = new Material(_pRenderer.material);
     _pRenderer.material = _instanceMat;
     _inited             = true;
 }