全体的に簡略化し、必要と思われる部分を抜粋しました。
-
Not running
アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。
-
Inactive
var Color = function() { | |
this.r = this.g = this.b = 0; | |
this.h = this.s = this.l = 0; | |
this.a = 1; | |
}; | |
/** RGB */ | |
Color.prototype.cssRGB = function() { | |
return "rgb("+Math.round(255*this.r)+","+Math.round(255*this.g)+","+Math.round(255*this.b)+")"; | |
}; | |
Color.prototype.cssRGBA = function() { |
全体的に簡略化し、必要と思われる部分を抜粋しました。
Not running
アプリは起動されていないか、実行されていたけれどもシステムによって終了されています。
Inactive
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace WWWKit | |
{ | |
/// <summary> | |
/// A handy class to use WWW class and WWWForm class. | |
/// | |
/// Features: |
// WebブラウザのTwitter投稿画面を開く | |
Application.OpenURL("http://twitter.com/intent/tweet?text=" + WWW.EscapeURL("テキスト #hashtag")); | |
// Lineに投稿 | |
Application.OpenURL("http://line.naver.jp/R/msg/text/?" + WWW.EscapeURL("テキスト", System.Text.Encoding.UTF8)); |
おはようございます. @susisu2413 です. この記事は OUCC アドベントカレンダー 2014 1日目の記事です. が, 誰も登録されていなかったので急遽書くことになりました. しかたがないので適当な記事でハードルを下げつつお茶を濁そうと思います.
say
コマンドをご存知でしょうか. Mac に標準で入っている音声読み上げコマンドです.
最近, レポート作成の疲れから say
コマンドで遊んでみたら思いの外面白かったので記事にしてみました.
using System.CodeDom.Compiler; | |
using System.IO; | |
using System.Collections.Generic; | |
public class SpriteEnumGenerator : AssetPostprocessor { | |
readonly static string exportDirectry = "Assets/Enum/"; | |
readonly static string generateCodeNamespace = "ResourcesEnum"; | |
static public void OnPostprocessAllAssets( |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
public class FPS : MonoBehaviour { | |
Text text; | |
int frameCount; | |
float prevTime; | |
using UnityEngine; | |
using System.Collections; | |
public class GyroScene : MonoBehaviour { | |
public Transform target; | |
private Quaternion initialRotation; | |
private Quaternion gyroInitialRotation; |