Entries from 2015-05-11 to 1 day

ブログで稼ぐってすごいね。

「ブログで稼ぐ」は現実的か?PV別ブログ収益をざっくり計算blogos.com

Vector3.Distance(A, B) もしくは、(pos1 - pos2).magnitude

A,B間の距離を計算してくれるプロパティ float型で値を返す。 // Bool型のメソッド。メソッドも返り血をBool型することもできる。 private bool is_in_snap_range() { bool ret = false; // ある程度離れていたとしても、trueとする。 if(Vector3.Distance(t…

ray.origin, ray.direction

originプロパティ:開始点 directionプロパティ:方向(単位ベクトル) public bool unproject_mouse_position(out Vector3 world_position, Vector3 mouse_position) { // returnでtrue、falseを返す。 // ret、ローカル変数にする。 bool ret; float depth…

オーディオをサンプルスクリプト

Unity – 効果音(SE)を再生する方法。複数の音を鳴らすサンプルコードも用意しました | increment Logincrement-log.com

【Unity エラー】CS1519 : タイプミスの可能性

error CS1519: Unexpected symbol `void' in class, struct, or interface member declaration 「;」がないとか。 private float step_timer = 0.0f void Update () { }

コンポーネントを取得

コンポーネントを取得するとき、2通りの書き方がある。 public GameObject textlevel_ex; public text textlevel; textlevel = textlevel_ex.GetComponent<Text>(); public void TextLevel(string method){ if(method == "pop"){ ParentChance.SetActive(true); t</text>…

ゲーム理論・読み物

Table of Contents · Game Programming Patterns CASUAL CONNECT EDUCATION