Exemplo n.º 1
0
    void Update()
    {
        if (d > 0)
        {
            d -= Time.deltaTime;
            if (d <= 0)
            {
                this.particleSystem.Stop(true);

                CFX_Demo_Translate translation = this.gameObject.GetComponent <CFX_Demo_Translate>();
                if (translation != null)
                {
                    translation.enabled = false;
                }
            }
        }
    }
Exemplo n.º 2
0
    void Update()
    {
        if (d > 0)
        {
            d -= Time.deltaTime * GameManager.TimeMultipler;
            if (d <= 0)
            {
                this.GetComponent <ParticleSystem>().Stop(true);

                CFX_Demo_Translate translation = this.gameObject.GetComponent <CFX_Demo_Translate>();
                if (translation != null)
                {
                    translation.enabled = false;
                }
            }
        }
    }