Beispiel #1
0
    override public bool Update(float playback_time)
    {
        base.Update(playback_time);

        if (IsStarted == false)
        {
            return(true);
        }

        playback_time -= time;

        bool is_playing = false;

        if (particle_system != null)
        {
            if (particle_system.IsPlaying)
            {
                is_playing = true;
                particle_system.UpdatePlay(playback_time);
            }
            else
            {
                Finish();
            }
        }
        if (tween_system != null)
        {
            tween_system.UpdatePlay(playback_time);
        }
        IsPlaying = is_playing;
        return(is_playing);
    }
Beispiel #2
0
 void UpdateParticles()
 {
     if (m_PlayingParticles.Count > 0)
     {
         for (int i = 0; i < m_PlayingParticles.Count;)
         {
             HFX_ParticleSystem particle = m_PlayingParticles[i];
             if (particle.UpdatePlay(PlaybackTime) == false && BattleBase.Instance.IsPause != ePauseType.Pause)
             {
                 m_PlayingParticles.RemoveAt(i);
             }
             else
             {
                 ++i;
             }
         }
     }
 }