// Token: 0x060019DB RID: 6619 RVA: 0x00016B1E File Offset: 0x00014D1E public void PlayAnimationLoop(CharacterAnimationSystem animationSystem, TextureAnimationWithTransitions anim, int layer = 0) { if (anim && animationSystem) { animationSystem.PlayLoop(anim, layer, null, false); } }
// Token: 0x060019DA RID: 6618 RVA: 0x00016AFC File Offset: 0x00014CFC public void RestartAnimationLoop(CharacterAnimationSystem animationSystem, TextureAnimationWithTransitions anim, int layer = 0) { if (anim && animationSystem) { animationSystem.RestartLoop(anim, layer, null); } }
// Token: 0x060019D9 RID: 6617 RVA: 0x00016ADA File Offset: 0x00014CDA public void PlayAnimationOnce(CharacterAnimationSystem animationSystem, TextureAnimationWithTransitions anim, int layer = 0) { if (anim && animationSystem) { animationSystem.Play(anim, layer, null); } }
// Token: 0x0600115D RID: 4445 public bool CompareAnimations(TextureAnimationWithTransitions current, TextureAnimationWithTransitions[] array) { for (int i = 0; i < array.Length; i++) { if (array[i] == current) { return true; } } return false; }
// Token: 0x06001155 RID: 4437 RVA: 0x0006599C File Offset: 0x00063B9C public bool CompareAnimations(TextureAnimationWithTransitions current, TextureAnimationWithTransitions[] array) { for (int i = 0; i < array.Length; i++) { TextureAnimationWithTransitions x = array[i]; if (x == current) { return(true); } } return(false); }
// Token: 0x06001069 RID: 4201 private void PerformDash(TextureAnimationWithTransitions dashAnimation, SoundProvider dashSound) { this.m_sein.Mortality.DamageReciever.ResetInviciblity(); this.m_hasDashed = true; if (RandomizerBonus.DoubleAirDash() && !RandomizerBonus.DoubleAirDashUsed) { this.m_hasDashed = false; RandomizerBonus.DoubleAirDashUsed = true; } this.m_isOnGround = this.m_sein.IsOnGround; this.m_lastDashTime = Time.time; this.m_lastPressTime = 0f; this.SpriteRotation = this.m_sein.PlatformBehaviour.PlatformMovement.GroundAngle; this.m_allowNoDecelerationForThisDash = true; if (this.m_chargeDashAtTarget) { this.m_faceLeft = (this.m_chargeDashDirection.x < 0f); } else if (this.m_sein.PlatformBehaviour.PlatformMovement.HasWallLeft) { this.m_faceLeft = false; } else if (this.m_sein.PlatformBehaviour.PlatformMovement.HasWallRight) { this.m_faceLeft = true; } else if (this.m_sein.Input.NormalizedHorizontal != 0) { this.m_faceLeft = (this.m_sein.Input.NormalizedHorizontal < 0); } else if (!Mathf.Approximately(this.m_sein.Speed.x, 0f)) { this.m_faceLeft = (this.m_sein.Speed.x < 0f); } else { this.m_faceLeft = this.m_sein.FaceLeft; this.m_allowNoDecelerationForThisDash = false; } this.m_sein.FaceLeft = this.m_faceLeft; this.m_stopAnimation = false; if (dashSound) { Sound.Play(dashSound.GetSound(null), this.m_sein.Position, null); } this.m_sein.Animation.Play(dashAnimation, 154, new Func <bool>(this.KeepDashAnimationPlaying)); if (SeinDashAttack.RainbowDashActivated) { ((GameObject)InstantiateUtility.Instantiate(this.DashFollowRainbowEffect, this.m_sein.Position, Quaternion.identity)).transform.parent = this.m_sein.Transform; } this.m_sein.PlatformBehaviour.PlatformMovement.LocalSpeedY = -this.DashDownwardSpeed; }
// Token: 0x0600115F RID: 4447 public void PlayFastThrowAnimation() { TextureAnimation currentAnimation = this.m_sein.PlatformBehaviour.Visuals.Animation.Animator.CurrentAnimation; TextureAnimationWithTransitions currentTextureAnimationTransitions = this.m_sein.PlatformBehaviour.Visuals.Animation.Animator.CurrentTextureAnimationTransitions; foreach (SeinGrenadeAttack.FastThrowAnimationRule fastThrowAnimationRule in this.FastThrowAnimations) { if (fastThrowAnimationRule.Animations.Contains(currentAnimation)) { this.m_sein.Animation.Play(fastThrowAnimationRule.ThrowAnimation, 10, this.AnimationRule(fastThrowAnimationRule.PlayRule)); return; } } foreach (SeinGrenadeAttack.FastThrowAnimationRule fastThrowAnimationRule2 in this.FastThrowAnimations) { if (fastThrowAnimationRule2.AnimationsWithTransitions.Contains(currentTextureAnimationTransitions)) { this.m_sein.Animation.Play(fastThrowAnimationRule2.ThrowAnimation, 10, this.AnimationRule(fastThrowAnimationRule2.PlayRule)); break; } } }