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 makeElect() { elect = poller.Spawn("ElectParticle", GameObject.Find("Hand_L").transform.position); elect.transform.parent = GameObject.Find("Hand_L").transform; }