public override void ExitingState()
    {
        slidingNoise.EndLoop();
        GameObject.Destroy(slidingNoise.Loop);

        if (System.Single.IsNaN(y))
        {
            return;
        }

        Owner.Animator.CurrentAnimation = Animations.P_CeilingSlide;

        Owner.RunningParts.WorldVelocity = new Vector3(Owner.RunningParts.WorldVelocity.x, originalParticleYSpeed);
    }
Exemplo n.º 2
0
 public override void ExitingState()
 {
     slidingNoise.EndLoop();
     GameObject.Destroy(slidingNoise.Loop);
 }
Exemplo n.º 3
0
 void OnDestroy()
 {
     backgroundCheering.EndLoop();
 }