Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active April 18, 2018 10:07
Show Gist options
  • Save todorok1/abbaef0a2286d16255052ff7645bed05 to your computer and use it in GitHub Desktop.
Save todorok1/abbaef0a2286d16255052ff7645bed05 to your computer and use it in GitHub Desktop.
Unityチュートリアル・ガイドを表示するスクリプト。
// GuideManagerで力の大きさを読み取ることができるよう、
// SphereBooster.csにこのpublicメソッドを追加する
public Vector3 GetBoostForce(){
// 力の大きさと方向をかけたベクトルを返す
CalcForceDirection();
return forceMagnitude * forceDirection;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment