Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created May 1, 2018 13:01
Show Gist options
  • Save todorok1/a1e363f14fd61dbfed38271fcce9fdef to your computer and use it in GitHub Desktop.
Save todorok1/a1e363f14fd61dbfed38271fcce9fdef to your computer and use it in GitHub Desktop.
Unityチュートリアル・ゴルフゲームの進行を制御するスクリプト
void OnTriggerEnter(Collider other){
// 衝突した相手のタグを確認する
if (other.gameObject.tag == fallCheckerTag){
// 相手が落下判定用オブジェクトだった時の処理
StopFlying();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment