Skip to content

Instantly share code, notes, and snippets.

@unitymasCS
Created February 19, 2015 12:18
Show Gist options
  • Save unitymasCS/2c427da4bcfe175e3527 to your computer and use it in GitHub Desktop.
Save unitymasCS/2c427da4bcfe175e3527 to your computer and use it in GitHub Desktop.
void OnParticleCollision(GameObject objct){
//処理内容
//例)衝突したオブジェクトタグがenemyだった場合、オブジェクトを破壊する
if(obj.gameObject.tag == "enemy"){
Object.Destroy(gameObject);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment