Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active May 4, 2018 13:29
Show Gist options
  • Select an option

  • Save todorok1/87ed1b99bfc60d3721333906b1b81e76 to your computer and use it in GitHub Desktop.

Select an option

Save todorok1/87ed1b99bfc60d3721333906b1b81e76 to your computer and use it in GitHub Desktop.
Unityチュートリアル・コースアウト時の演出を実装するスクリプト
// ゴール用UIテキストオブジェクトへの参照
[SerializeField]
GameObject goalTextObject;
// ここから下2つを追加
// カメラオブジェクトへの参照
[SerializeField]
GameObject cameraObject;
// ミステキストオブジェクトへの参照
[SerializeField]
GameObject fallTextObject;
// 追加ここまで
// 中略
// メンバ変数の最後尾に追加
// カメラコントローラへの参照キャッシュ
CameraController cameraController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment