Esempio n. 1
0
 void Update()
 {
     m_timeCounter += Time.deltaTime;
     if (m_timeCounter > m_timeInterval)
     {
         for (int zeNum = 0; zeNum < m_times; ++zeNum)
         {
             m_TheParticleSystem.stopEffect();
             m_TheParticleSystem.playEffect();
             transform.position = new Vector3(transform.position.x + m_SpacingX, transform.position.y, transform.position.z);
         }
         transform.position = particleSystemPos;
         m_timeCounter      = 0;
     }
 }