Guest User

Untitled

a guest
Jan 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. I do not know How to call the OncollisionEnter 2D Function in other places of the code.In THIS CODE I WOULD LIKE TO CALL IT IN THE VOID UPDATE.
  2.  
  3. void OnCollisionEnter2D (Collider2D col)
  4. {
  5. if (col.gameObject.name == "Front_Buildings")
  6. {
  7.  
  8. GetComponent<Animator>().SetBool("isGrounded", true);
  9.  
  10. }
  11. }
Add Comment
Please, Sign In to add comment