Advertisement
Guest User

Untitled

a guest
May 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public void KeyInput(){
  2. if (playerController.GetCurrentState () == PlayerStates.PlayerState_Types.NormalMovement && !CD_ClientBool && Input.GetKeyDown ("r")) {
  3. JumpAttackTargeting = true;
  4. ExecuteJumpAttack = false;
  5. attackBoundsOBJ = Instantiate (áttackBoundsPrefab, transform.position, Quaternion.Euler (90.0f, 0.0f, 0.0f));
  6. attackBoundsRenderer = attackBoundsOBJ.GetComponent<MeshRenderer> ();
  7. attackBoundsOBJ.transform.localScale = attackBoundsOBJ.transform.localScale * jumpAttackAOEDiameter;
  8. attackBoundsOBJ.SetActive (false);
  9.  
  10. playerController.SetCurrentState (PlayerStates.PlayerState_Types.JumpAttackTargeting, true);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement