{"id":8284,"date":"2023-09-12T05:18:27","date_gmt":"2023-09-11T20:18:27","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=8284"},"modified":"2023-09-12T05:18:29","modified_gmt":"2023-09-11T20:18:29","slug":"c-%e5%88%97%e6%8c%99%e5%9e%8b","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=8284","title":{"rendered":"C# \u5217\u6319\u578b"},"content":{"rendered":"\n<p>using System.Collections;<br>using System.Collections.Generic;<br>using UnityEngine;<br>using System.Threading; \/\/ You need to include this namespace for threads<\/p>\n\n\n\n<p>public class TestScript : MonoBehaviour<br>{ public enum ACTION_TYPE<br>{<br>JUMP = 0,<br>ATTACL = 1,<br>DEFENCE = 2<br>}<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>private void Start()\n{\n    ACTION_TYPE actionType;\n\n    actionType = ACTION_TYPE_JUMP;\n\n    switch(actionType)\n    {\n        case ACTION_TYPE_JUMP:\n            break;\n        case ACTION_TYPE.ATTACK:\n            break;\n        case ACTION_TYPE.DEFENCE:\n            break;\n    }\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>using System.Collections;using System.Collections.Generic;using UnityEngine;using System.Threading; \/\/ You nee &hellip; <a href=\"http:\/\/www.tyosuke20xx.com\/blog\/?p=8284\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;C# \u5217\u6319\u578b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","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],"tags":[3],"class_list":["post-8284","post","type-post","status-publish","format-standard","hentry","category-c","tag-programming"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8284","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=8284"}],"version-history":[{"count":1,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8284\/revisions"}],"predecessor-version":[{"id":8285,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8284\/revisions\/8285"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8284"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}