Ejemplo n.º 1
0
 private void StopChargingFxs()
 {
     foreach (ParticleSystem PS in chargingPartSystList)
     {
         PS.Stop();
     }
     foreach (ParticleSystem PS in chargingMainSystList)
     {
         PS.Stop();
     }
 }
Ejemplo n.º 2
0
    private void OnTriggerEnter(Collider other)
    {
        Instantiate(createThis, transform.position, transform.rotation, vfxPool.transform);

        Destroy(GetComponent <Rigidbody>());
        Destroy(GetComponent <Renderer>());

        p = GetComponentsInChildren <ParticleSystem>();

        foreach (ParticleSystem PS in p)
        {
            PS.Stop();
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    void OnCollisionEnter(Collision coll)
    {
        Instantiate(createThis, transform.position, transform.rotation);

        Destroy(GetComponent <Rigidbody>());
        Destroy(GetComponent <Renderer>());

        p = GetComponentsInChildren <ParticleSystem> ();

        foreach (ParticleSystem PS in p)
        {
            PS.Stop();
        }
    }
Ejemplo n.º 4
0
    IEnumerator coroutine(float endTime)
    {
        foreach (ParticleSystem PS in ParticleSystems)
        {
            PS.Play();
        }

        if (hasEndTime)
        {
            yield return(new WaitForSeconds(endTime));

            foreach (ParticleSystem PS in ParticleSystems)
            {
                PS.Stop();
            }
        }
    }