2013-07-02から1日間の記事一覧
・IHoge.cs interface IHoge { void Bar (); T Fuga (); // <- だめ } これだとTの返り値が怒られる。objectとか色々試したがよくわからない。「c# interface method generic return type」にて検索すると、 URL: http://stackoverflow.com/questions/101472…
http://answers.unity3d.com/questions/424048/lookrotation-weird-rotation.html こちらを参考にした private Vector3 myDirection; public void Face(Vector3 direction) { myDirection = direction; //myTransform.rotation = Quaternion.LookRotation (d…
URL: http://wiki.unity3d.com/index.php/Singleton Generic Based Singletonを参考、てかコピペ public sealed class Singleton<T> where T : class, new() { /// <summary> /// Singleton implementation, readonly and static ensure thread safeness. /// </summary> public st</t>…