Last active
May 4, 2018 09:48
-
-
Save todorok1/69a305a035f77595e7055af196adb29c to your computer and use it in GitHub Desktop.
Unityチュートリアル・コースアウト時の演出を実装するスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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