Skip to content

Instantly share code, notes, and snippets.

@jake1256
Last active August 29, 2015 14:15
Show Gist options
  • Save jake1256/540bd092e7aa708b3f95 to your computer and use it in GitHub Desktop.
Save jake1256/540bd092e7aa708b3f95 to your computer and use it in GitHub Desktop.
【Unity】ParticleとLineRendererで◯めはめ波を作ろう! ref: http://qiita.com/kuuki_yomenaio/items/85f0233822ccc5272d1e
int layerMask = LayerMask.GetMask("Enemy");
if(Physics.Raycast(shotRay , out shotHit , range , layerMask)){
// enemyに当たった時だけここにくる
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment