void Guard() { if (skillManager.isShowUI()) { keyDictionary["RMouse"] = false; return; } if (keyDictionary["RMouse"] && pStatus.isRolling == false && pStatus.isAttack == false && pStatus.StaminaPoint >= 200) { if (!pStatus.isGuard) { pStatus.isGuard = true; tr_body.rotation = Quaternion.LookRotation(1 * LookForward); poller.Spawn("Shield", GetComponent <Transform>().position + Vector3.up * 0.8f - LookForward * 0.1f); CharacterGoto = Vector3.forward; RayGoto = LookForward; } } else { pStatus.isGuard = false; poller.Delete("Shield"); } keyDictionary["RMouse"] = false; }
void FinishedRoll() { doRolling = false; at_body.SetBool("isRoll", doRolling); while (pollor.isSpawned("MotionTrail")) { pollor.Delete("MotionTrail"); } }