Advertisement
Meee2

Untitled

Jun 13th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public float speed;
  2. public int height;
  3.  
  4. private void OnTriggerEnter(Collider other)
  5. {
  6. if (other.CompareTag("Player"))
  7. this.transform.Translate(new Vector3(0, (height * speed), 0));
  8. //this.transform.Translate(Vector3.up * height * speed);
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement