<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uni-mal</author_name>
  <author_url>https://blog.hatena.ne.jp/uni-mal/</author_url>
  <blog_title>Unityでインディゲームを作る！</blog_title>
  <blog_url>https://indie-game-creation-with-unity.hatenablog.com/</blog_url>
  <categories>
    <anon>UnityのためのC#</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>Unity 2021LTS版がリリースされました。多くの新機能があるのですが、今回はUnityが、C#8.0に対応したことで可能となった、新しいswitchの書き方についてです。 なお、文とは&quot;statement&quot;を指しますが、この新しい構文は厳密にはstatement（文）ではなく&quot;式&quot;となります。 マイクロソフト公式が、C#8.0の新機能について解説しており、今回の記事はここを参照しています。 switch文と言えば... switch(input){ case Animal.Dog : Console.WriteLine(&quot;Inu&quot;); break; case Animal.Cat : …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Findie-game-creation-with-unity.hatenablog.com%2Fentry%2Fnew-switch-statement&quot; title=&quot;Unity 2021 LTS 祝リリース！　C#8対応で可能になった新しいswitch式について - Unityでインディゲームを作る！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/u/uni-mal/20220429/20220429120416.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-29 12:15:50</published>
  <title>Unity 2021 LTS 祝リリース！　C#8対応で可能になった新しいswitch式について</title>
  <type>rich</type>
  <url>https://indie-game-creation-with-unity.hatenablog.com/entry/new-switch-statement</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
