public override void Skip()
 {
     if (!skip)
     {
         for (int i = 0; i < effects.Length; i++)
         {
             GameObject val = effects[i];
             if (val != null)
             {
                 rymFX component = val.GetComponent <rymFX>();
                 if (component != null)
                 {
                     float num = component.GetEndFrame() - component.GetCurFrame();
                     if (num > 0f)
                     {
                         float num2 = num / 30f;
                         component.UpdateFx(num2, null, component.IsLoop());
                     }
                 }
             }
         }
         if (animators != null && animators.Count > 0)
         {
             for (int j = 0; j < animators.Count; j++)
             {
                 animators[j].set_speed(10000f);
             }
         }
         SoundManager.StopSEAll(0);
         base.Skip();
     }
 }
Exemple #2
0
 public bool IsLoop()
 {
     if (fx != null)
     {
         return(fx.IsLoop());
     }
     if (ctrl != null)
     {
         return(ctrl.loop);
     }
     return(false);
 }