Entries from 2015-05-11 to 1 day
「ブログで稼ぐ」は現実的か?PV別ブログ収益をざっくり計算blogos.com
A,B間の距離を計算してくれるプロパティ float型で値を返す。 // Bool型のメソッド。メソッドも返り血をBool型することもできる。 private bool is_in_snap_range() { bool ret = false; // ある程度離れていたとしても、trueとする。 if(Vector3.Distance(t…
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
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