{"id":25436,"date":"2024-07-26T23:30:44","date_gmt":"2024-07-26T14:30:44","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=25436"},"modified":"2024-07-26T23:30:46","modified_gmt":"2024-07-26T14:30:46","slug":"unity-c-%e5%a4%89%e6%95%b0","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=25436","title":{"rendered":"Unity C# \u5909\u6570"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>using System.Collections;\nusing System.Collections.Generic;\nusing UnityEngine;\n\npublic class Test : MonoBehaviour\n{\n    int HP = 100, ATK = 100;\n    int DEF = 50;\n    \/\/\n    string name = \"\";\n\n    \/\/\u5c11\u6570\n    float f = 0.1f;\n\n    bool isDead = false;\n    \/\/ Start is called before the first frame update\n    void Start()\n    {\n        HP = 1000;\n\n        f = 1000;\n\n        name = \"\u540d\u524d\u306f\u52c7\u8005\" + \"\u3067\u3059\";\n\n        isDead = true;\n\n        HP = 200;\n        UnityEngine.Debug.Log(\"HP\" + HP);\n\n        HP = 100;\n\n        UnityEngine.Debug.Log(\"HP\" + HP);\n    }\n\n    private void FixedUpdate()\n    {\n        \n    }\n\n    \/\/ Update is called once per frame\n    void Update()\n    {\n        \n    }\n}\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[33,4],"tags":[35,3,14],"class_list":["post-25436","post","type-post","status-publish","format-standard","hentry","category-c","category-programming","tag-c","tag-programming","tag-unity"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25436"}],"version-history":[{"count":1,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25436\/revisions"}],"predecessor-version":[{"id":25437,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/25436\/revisions\/25437"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25436"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}