12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- 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<StateMachine>() != null && enemy.GetComponent<StateMachine>().currentState == "DaoAtk2";
- }
- public bool CanBeJumperCatach(Transform enemy)
- {
- bool flag = enemy.GetComponent<JumperAction>() != null && enemy.GetComponent<StateMachine>().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<JumperFooterAction>() != null && enemy.GetComponent<StateMachine>().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<BeelzebubAction>() != null && enemy.GetComponent<StateMachine>().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<BeelzebubAction>() != null && enemy.GetComponent<StateMachine>().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<BombKillerAction>() != null && enemy.GetComponent<StateMachine>().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<EatingBossAction>() != null && enemy.GetComponent<StateMachine>().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<JumperAction>() != null && force;
- }
- public bool JumperFooterCatchSuccess(Transform enemy, bool force)
- {
- return enemy.GetComponent<JumperFooterAction>() != null && force;
- }
- public bool BeelzebubSpAttackSuccess(Transform enemy, bool force)
- {
- return enemy.GetComponent<BeelzebubAction>() != null && force;
- }
- public bool BombKillerAtkSuccess(Transform enemy, bool force)
- {
- return enemy.GetComponent<BombKillerAction>() != null && force;
- }
- public bool EatingBossEatSuccess(Transform enemy, bool force)
- {
- return enemy.GetComponent<EatingBossAction>() != null && force;
- }
- }
|