{"author_name":"yamakami21","blog_title":"memorandam","image_url":null,"url":"https://yamakami21.hatenablog.com/entry/2015/06/10/185435","author_url":"https://blog.hatena.ne.jp/yamakami21/","width":"100%","description":"int n = Random.Range(0, 100); GameObject Item = Case[Type].transform.FindChild(\"Item\").gameObject; //10% if (n < 10){ Item.GetComponent<SpriteRenderer>().sprite = null; //90% }else{ Item.GetComponent<SpriteRenderer>().sprite = ItemSprite; } Random.Range\u306e\u6ce8\u610f \u30cf\u30de\u30b1\u30f3100%\u958b\u767a: Unity: Random.Range()\u306e\u7bc4\u56f2\u304cfloat\u3068\u2026","title":"\u4e8b\u8c61\u306e\u5272\u5408\u3092\u3064\u3051\u305f\u3044\u6642","version":"1.0","blog_url":"https://yamakami21.hatenablog.com/","published":"2015-06-10 18:54:35","height":"190","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamakami21.hatenablog.com%2Fentry%2F2015%2F06%2F10%2F185435\" title=\"\u4e8b\u8c61\u306e\u5272\u5408\u3092\u3064\u3051\u305f\u3044\u6642 - memorandam\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}