Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. private void OnCollisionEnter(Collision collision)
  2. {
  3.  
  4. Debug.Log("collision detected");
  5. if (collision.transform.gameObject.tag == "fish")
  6. {
  7. GUI.Box(new Rect(0, 0, 100, 100), information);
  8.  
  9.  
  10. }
  11.  
  12. //if (collision.transform.gameObject == controller[0] && device[0].GetPressDown(EVRButtonId.k_EButton_A))
  13. //{
  14. // GUI.Box(new Rect(0, 0, 100, 100), information);
  15. //}
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement