2013-07-19から1日間の記事一覧
・インデックスパターン dic["キー名"] = "値"; と ・Addメソッドパターン dic.Add("キー名", "値"); の2種類あるが、 Addメソッドパターンだと、キーが既にあるときはエラーになる。 しかし、インデックスパターンは大丈夫だし、もともとなくても追加される…
URL: http://forum.unity3d.com/threads/160249-Destroy-without-MonoBehaviour まずは、UnityEngine;をインポートしておき using UnityEngine; GameObject obj = new GameObject("someobjecttotestdestroy"); UnityEngine.Object.Destroy(obj);
URL: http://answers.unity3d.com/questions/219609/auto-destroying-particle-system.html ここを見ると残りカウントが0になったらDestroyしていた。 C#で置き換えてさらに高速化した。 using UnityEngine; using System.Collections; public class Shurike…