Ejemplo n.º 1
0
 // Token: 0x06000FFB RID: 4091 RVA: 0x000607F8 File Offset: 0x0005E9F8
 public void ChangeState(SeinChargeJump.State state)
 {
     this.CurrentState       = state;
     this.m_stateCurrentTime = 0f;
     this.m_attackablesIgnore.Clear();
     SeinChargeJump.State currentState = this.CurrentState;
     if (currentState != SeinChargeJump.State.Normal)
     {
         if (currentState != SeinChargeJump.State.Jumping)
         {
         }
     }
 }
Ejemplo n.º 2
0
 // Token: 0x06000FFC RID: 4092 RVA: 0x00060848 File Offset: 0x0005EA48
 public void UpdateState()
 {
     SeinChargeJump.State currentState = this.CurrentState;
     if (currentState != SeinChargeJump.State.Normal)
     {
         if (currentState == SeinChargeJump.State.Jumping)
         {
             if (this.m_stateCurrentTime > this.JumpDuration)
             {
                 this.ChangeState(SeinChargeJump.State.Normal);
             }
             for (int i = 0; i < Targets.Attackables.Count; i++)
             {
                 IAttackable attackable = Targets.Attackables[i];
                 if (!InstantiateUtility.IsDestroyed(attackable as Component))
                 {
                     if (!this.m_attackablesIgnore.Contains(attackable))
                     {
                         if (attackable.CanBeStomped())
                         {
                             Vector3 vector    = attackable.Position - this.Sein.PlatformBehaviour.PlatformMovement.HeadPosition;
                             float   magnitude = vector.magnitude;
                             if (magnitude < 3f && Vector2.Dot(vector.normalized, this.PlatformMovement.LocalSpeed.normalized) > 0f)
                             {
                                 this.m_attackablesIgnore.Add(attackable);
                                 Damage damage = new Damage((float)this.Damage, this.PlatformMovement.WorldSpeed.normalized * 3f, this.Sein.Position, DamageType.Stomp, base.gameObject);
                                 damage.DealToComponents(((Component)attackable).gameObject);
                                 if (attackable.IsDead() && attackable is IStompAttackable && ((IStompAttackable)attackable).CountsTowardsSuperJumpAchievement())
                                 {
                                     AchievementsLogic.Instance.OnSuperJumpedThroughEnemy();
                                 }
                                 if (this.ExplosionEffect)
                                 {
                                     InstantiateUtility.Instantiate(this.ExplosionEffect, Vector3.Lerp(base.transform.position, attackable.Position, 0.5f), Quaternion.identity);
                                 }
                                 break;
                             }
                         }
                     }
                 }
             }
         }
     }
     this.m_stateCurrentTime += Time.deltaTime;
 }