Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
using UnityEditor;
using System;
public class TestWindow : EditorWindow {
// Serializableの物(public or SerializeField)がUndo対象.
[SerializeField] string testText;
// うぃんど~ひらくよ~
[MenuItem("Window/TestWindow")]
// attached this script to root game object of 'Button Prefab' with UIButton(NGUI).
using UnityEngine;
using System.Collections;
public class ButtonText : MonoBehaviour {
[SerializeField] UILabel label;
public string text
{
set {
@kyubuns
kyubuns / OrmTest.hx
Created December 15, 2013 15:18
(>_<。) haxe3.0.1
import sys.db.Types;
class User extends sys.db.Object {
public var id : SId;
public var name : SString<32>;
public var birthday : SDate;
public var phoneNumber : SNull<SText>;
}
class OrmTest {
@kyubuns
kyubuns / chat.coffee
Created September 12, 2012 19:21
ちゃっと。
$ ->
if not "WebSocket" in window
alert "WebSocket NOT supported by your Browser!"
return
#-----ここからライブラリでやる-----
METHOD_IDS = {
'chatStoC' : 100,
'chatCtoS' : 200
}
@kyubuns
kyubuns / gist:3709247
Created September 12, 2012 19:21
chat.coffeeたたき台
$ ->
if not "WebSocket" in window
alert "WebSocket NOT supported by your Browser!"
return
#-----ここからライブラリでやる-----
METHOD_IDS = {
'chatStoC' : 100,
'chatCtoS' : 200
}
hogehoge