<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sanukin39</author_name>
  <author_url>https://blog.hatena.ne.jp/sanukin39/</author_url>
  <blog_title>スマゲ</blog_title>
  <blog_url>https://smartgames.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Unityでタイマーを作ってみます■関連 Unityで時間を扱う - スマゲ■完成イメージ ■UIの準備 uGUIを使っていい感じにボタンを配置する ■タイマー機能の実装 Time.deltaTimeを利用して残り時間から直前のフレームに要した時間を引く 残り時間が0になったらタイマーを止める ※更新部分のみ記述 void Update(){ if(isRunning){ restTime -= Time.deltaTime; if(restTime &lt;= 0){ StopTimer(); } UpdateTime(); } } ■UIの更新 &quot;01:38&quot;のような形式で時間を表せるように表示…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsmartgames.hatenablog.com%2Fentry%2F2016%2F04%2F10%2F234145&quot; title=&quot;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>http://cdn-ak.f.st-hatena.com/images/fotolife/s/sanukin39/20160410/20160410231258.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-04-10 23:41:45</published>
  <title>Unityでタイマーを作る</title>
  <type>rich</type>
  <url>https://smartgames.hatenablog.com/entry/2016/04/10/234145</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
