private AnimationGroup CreateAnimationControl(ParticleSystem particle) { animations = new AnimationGroup(this, false); animations.TimeUpEvent += onAnimationsOnTimeUpEvent; animations.Set(new ParticleAnimationClip(particle)); return(animations); }
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)); } }