This file contains hidden or 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.Collections; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
class SpaceSphere | |
{ | |
static SpaceSphere() |
This file contains hidden or 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
Target=$(cd $(dirname $1) && pwd)/$(basename $1) | |
if [ $# == 0 ]; then | |
echo "Usage: OpenUnity [project path] [unity version]" | |
exit 0 | |
fi | |
if [ ! -e "${Target}/ProjectSettings/ProjectVersion.txt" ]; then | |
echo "${Target}/ProjectSettings/ProjectVersion.txt が見つかりません。" | |
exit 1 | |
fi |
This file contains hidden or 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
// Generated by CoffeeScript 1.10.0 | |
/*: | |
* @plugindesc ツイートするやつ | |
* @author kyubuns | |
* | |
* @help | |
* | |
* Plugin Command: | |
* Tweet (message) |
This file contains hidden or 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
###: | |
# @plugindesc ツイートするやつ | |
# @author kyubuns | |
# | |
# @help | |
# | |
# Plugin Command: | |
# Tweet (message) | |
# | |
# Example: |
This file contains hidden or 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
Game_Interpreter.prototype.EventSample1 = function*() { | |
this.showText('hello event script sample!'); | |
yield this.waitForMessage(); | |
this.showText('ok!'); | |
yield this.waitForMessage(); | |
} |
This file contains hidden or 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 | |
readonly MIN_PER_STAMINA=5 | |
function usage() { | |
cat <<_EOT_ | |
Usage: | |
$0 \$1 | |
スタミナが\$1まで回復する時刻 |
This file contains hidden or 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.Collections.Generic; | |
using UnityEngine; | |
public class JsonTest : MonoBehaviour | |
{ | |
void Start() | |
{ | |
var json = Serialize(); | |
Desirialize(json); |
This file contains hidden or 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 | |
# $HOME/accountsにgithubのユーザー名を行区切りで書いておく | |
# accountsファイルは空行可、先頭に#でコメントが書ける | |
set -eu | |
pushd "$HOME" | |
test -r accounts |
This file contains hidden or 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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UniRx; | |
namespace Dev | |
{ | |
public class Sandbox : MonoBehaviour | |
{ |
This file contains hidden or 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.Threading.Tasks; | |
using UniRx; | |
using UnityEngine; | |
public class Sample1 : MonoBehaviour | |
{ | |
public async Task Start() | |
{ | |
var input = await MessageBroker.Default.Receive<Hoge>().First(); | |
Debug.Log($"Result: {input.Value}"); |