Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections;
using System.Reflection;
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
class SpaceSphere
{
static SpaceSphere()
@kyubuns
kyubuns / open_unity.sh
Last active October 26, 2015 07:34
Mac用。適切っぽいバージョンのUnityでプロジェクトを開く。 ex. open_unity ~/code/unity_project/
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
// Generated by CoffeeScript 1.10.0
/*:
* @plugindesc ツイートするやつ
* @author kyubuns
*
* @help
*
* Plugin Command:
* Tweet (message)
###:
# @plugindesc ツイートするやつ
# @author kyubuns
#
# @help
#
# Plugin Command:
# Tweet (message)
#
# Example:
Game_Interpreter.prototype.EventSample1 = function*() {
this.showText('hello event script sample!');
yield this.waitForMessage();
this.showText('ok!');
yield this.waitForMessage();
}
#!/bin/bash
readonly MIN_PER_STAMINA=5
function usage() {
cat <<_EOT_
Usage:
$0 \$1
スタミナが\$1まで回復する時刻
using System;
using System.Collections.Generic;
using UnityEngine;
public class JsonTest : MonoBehaviour
{
void Start()
{
var json = Serialize();
Desirialize(json);
#!/bin/bash
# $HOME/accountsにgithubのユーザー名を行区切りで書いておく
# accountsファイルは空行可、先頭に#でコメントが書ける
set -eu
pushd "$HOME"
test -r accounts
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UniRx;
namespace Dev
{
public class Sandbox : MonoBehaviour
{
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}");