Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 18, 2018 09:59
Show Gist options
  • Save todorok1/7963ff26c4cce5133a4d8a61e6e326db to your computer and use it in GitHub Desktop.
Save todorok1/7963ff26c4cce5133a4d8a61e6e326db to your computer and use it in GitHub Desktop.
Unityチュートリアル・ガイドを表示するスクリプト。
// SphereBoosterへの参照をキャッシュ
SphereBooster sphereBooster;
// 『Sphere』オブジェクトのRigidbodyへの参照をキャッシュ
Rigidbody sphereRb;
// インスタンス化されたGuideオブジェクトのリスト
List<GameObject> guideList;
// 画面にプロットするガイドの数を定義
int prots = 8;
// スクリプト内で位置を計算するのでrelativePosは削除
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment