Beispiel #1
0
    private void AttachNewEffect()
    {
        var obj = Instantiate(EffectsPrefab);

        obj.transform.parent = transform;
        _effects             = obj.GetComponent <CustomParticleBursts>();
    }
 // Use this for initialization
 void Start()
 {
     _particles = GetComponent <CustomParticleBursts>();
     if (OnAwake)
     {
         Execute();
     }
 }
Beispiel #3
0
 void Start()
 {
     _customParticles = GetComponent <CustomParticleBursts>();
     if (_borderParticleRenderer)
     {
         _borderParticleRenderer.material = new Material(_borderParticleRenderer.material);
     }
 }
 // Use this for initialization
 void Start()
 {
     _audio     = gameObject.AddComponent <AudioSource>();
     _particles = GetComponentInChildren <CustomParticleBursts>();
 }