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
// | |
// UnityKonashiPlugin.m | |
// | |
// Created by Koki Ibukuro on 1/8/15. | |
// | |
// | |
#import <Foundation/Foundation.h> | |
#import "Konashi.h" |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// | |
// ShellCommand.swift | |
// | |
// Created by Koki Ibukuro on 9/19/15. | |
// Copyright © 2015 asus4. All rights reserved. | |
// | |
import Foundation | |
public struct ShellCommand { |
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
/** | |
Converts Mobile Touch to the default Mouse Click | |
## invoked these method in Mobile too | |
OnMouseDown | |
OnMouseDrag | |
OnMouseUp | |
## only called in touch screen |
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
function getUrlVars() { | |
var vars = [], | |
hash, | |
i, | |
hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); | |
for(i = 0; i < hashes.length; i++) { | |
hash = hashes[i].split('='); | |
vars.push(hash[0]); | |
vars[hash[0]] = hash[1]; |
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; | |
using System.Collections; | |
// 3 types delegates | |
public delegate void TapDelegate(); | |
public delegate void DragDelegate(Vector3 vec); | |
public delegate void SwipeDelegate(SwipeDirection direction); | |
public enum SwipeDirection { |
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; | |
using System.Collections; | |
// ///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// ゲームオブジェクトのユーティリティ | |
// | |
// ///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
public class GameObjectUtil { |
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; | |
using System.Collections; | |
// delegates | |
public enum UIPopupState { | |
SUBMIT, | |
CANCEL | |
} | |
public delegate void ClickDelegate(UIPopupState state); |
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/python | |
# coding: utf-8 | |
import codecs,sys | |
""" | |
convert text to uniq characters | |
for Unity | |
ex: |
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; | |
using System.Collections; | |
//[ExecuteInEditMode] | |
[RequireComponent(typeof(SystemFontRenderer))] | |
[AddComponentMenu("NGUI/Interaction/Ex/System Font")] | |
public class UISystemFont : MonoBehaviour { | |
SystemFontRenderer fontRenderer; | |