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 LateUpdate(){ | |
// カメラの拡大率に応じたオフセットを取得 | |
Vector3 magnifiedOffset = GetMagnifiedOffset(); | |
if (isTracing){ | |
// 『Sphere』オブジェクトとオフセットからカメラの現在位置を計算 | |
gameObject.transform.position = player.transform.position + magnifiedOffset; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment