Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class LayerMaskUtil {
  5.  
  6. public static bool CheckLayer(int layer, LayerMask layerMask)
  7. {
  8. return (layerMask.value & (1 << layer)) != 0;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement