This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// <para>The default name of the play event.</para> | |
/// </summary> | |
public const string PlayEventName = "OnPlay"; | |
/// <summary> | |
/// <para>The default name of the stop event.</para> | |
/// </summary> | |
public const string StopEventName = "OnStop"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# コピーしたいテンプレート記事パス | |
template='templates/article_template.md' | |
# 日付 | |
date=`date '+%Y%m%d'` | |
# 検索対象フォルダ | |
dir='drafts/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
/// <summary> | |
/// Unityで録音し、メモリ上に保持した録音サウンドを再生するサンプルコード | |
/// OnGUIでデバッグボタンを表示しています | |
/// </summary> | |
public class UnityMicRecording : MonoBehaviour | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// setup serial | |
serial.setBaudRate(BaudRate.BaudRate115200) | |
// 0:none, 1:Success, 2:Fail | |
basic.forever(function () | |
{ | |
let str = serial.readString() | |
if (str.indexOf("1") >= 0) { | |
basic.showIcon(IconNames.Heart) | |
basic.pause(1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env dotnet-script | |
/** | |
* Rename Sample .txt to .cs | |
*/ | |
if (Args == null || Args.Count < 0) | |
{ | |
Console.WriteLine("Require arguments"); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<time.h> | |
#include<unistd.h> | |
// じゃんけんの手 | |
char te[3][20] = {"グー", "チョキ", "パー"}; | |
int main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class PrefabModeTest : MonoBehaviour | |
{ | |
void Awake() | |
{ | |
Debug.Log($"Awake : Prefabモードのワタシ {this}", this); | |
} | |
void OnEnable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using DG.Tweening; | |
using UnityEngine; | |
// DOTweenAwaiterExtensionサンプルコード(キャンセル有り) | |
public class DOTweenAwaiterExtensionWithCancel : MonoBehaviour | |
{ | |
async void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using DG.Tweening; | |
using UnityEngine; | |
// DOTweenAwaiterExtensionサンプルコード(キャンセル処理なし) | |
public class DOTweenAwaiterExtensionSample : MonoBehaviour | |
{ | |
async void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
using DG.Tweening; | |
using UnityEngine; | |
/// <summary> | |
/// DOTweenをasync/awaitに返還すDOTweenAwaiterの拡張メソッド | |
/// </summary> | |
public static class DOTweenAwaiterExtension |