Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active May 4, 2018 09:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/69a305a035f77595e7055af196adb29c to your computer and use it in GitHub Desktop.
Save todorok1/69a305a035f77595e7055af196adb29c to your computer and use it in GitHub Desktop.
Unityチュートリアル・コースアウト時の演出を実装するスクリプト
void OnTriggerEnter(Collider other){
// 衝突した相手のタグを確認する
if (other.gameObject.tag == fallCheckerTag){
// 相手が落下判定用オブジェクトだった時の処理
// 距離測定フラグをfalseにする
isCheckingDistance = false;
// カメラ追随フラグをfalseにする
cameraController.SetTracingState(false);
// ミステキストのアニメーションを開始
StartCoroutine(MissAnimation(0.8f));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment