Ejemplo n.º 1
0
 private AnimationGroup CreateAnimationControl(ParticleSystem particle)
 {
     animations              = new AnimationGroup(this, false);
     animations.TimeUpEvent += onAnimationsOnTimeUpEvent;
     animations.Set(new ParticleAnimationClip(particle));
     return(animations);
 }
Ejemplo n.º 2
0
 private void initOnce()
 {
     if (animations == null)
     {
         animations              = new AnimationGroup(this, false);
         animations.TimeUpEvent += onAnimationsEnd;
         animations.Set(new AnimationClip(StarAnimation, StarAnimationName),
                        new AnimationClip(LevelUpTextAnimation, LevelUpAnimationName),
                        new AnimationClip(AlphaAnimation, AlphaAnimationName),
                        new ParticleAnimationClip(Particles));
     }
 }