using System; using ExtensionMethods; using UnityEngine; public class PlayerSpHurt { private PlayerAction pac { get { return R.Player.Action; } } private PlayerAttribute pAttr { get { return R.Player.Attribute; } } public bool DaoRoll(Transform enemy) { return enemy.GetComponent() != null && enemy.GetComponent().currentState == "DaoAtk2"; } public bool CanBeJumperCatach(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk3"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool CanBeJumperFooterCatch(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk2Ready"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool CanBeBeelzebubEat(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk1"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool CanBeBeelzebubSaw(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk2"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool CanBombKillerCatch(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk1Ready"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool CanEatingBossEat(Transform enemy) { bool flag = enemy.GetComponent() != null && enemy.GetComponent().currentState == "Atk2"; bool flag2 = !this.pac.stateMachine.currentState.IsInArray(PlayerAction.SpHurtSta) && !this.pAttr.isDead; return flag && flag2; } public bool JumperCatachSuccess(Transform enemy, bool force) { return enemy.GetComponent() != null && force; } public bool JumperFooterCatchSuccess(Transform enemy, bool force) { return enemy.GetComponent() != null && force; } public bool BeelzebubSpAttackSuccess(Transform enemy, bool force) { return enemy.GetComponent() != null && force; } public bool BombKillerAtkSuccess(Transform enemy, bool force) { return enemy.GetComponent() != null && force; } public bool EatingBossEatSuccess(Transform enemy, bool force) { return enemy.GetComponent() != null && force; } }