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
/** | |
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 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
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 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 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 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 UnityEngine; | |
using System.Collections; | |
// ///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// | |
// ゲームオブジェクトのユーティリティ | |
// | |
// ///////////////////////////////////////////////////////////////////////////////////////////////////////// | |
public class GameObjectUtil { |
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 UnityEngine; | |
using System.Collections; | |
// delegates | |
public enum UIPopupState { | |
SUBMIT, | |
CANCEL | |
} | |
public delegate void ClickDelegate(UIPopupState state); |
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
#!/usr/bin/python | |
# coding: utf-8 | |
import codecs,sys | |
""" | |
convert text to uniq characters | |
for Unity | |
ex: |
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 UnityEngine; | |
using System.Collections; | |
//[ExecuteInEditMode] | |
[RequireComponent(typeof(SystemFontRenderer))] | |
[AddComponentMenu("NGUI/Interaction/Ex/System Font")] | |
public class UISystemFont : MonoBehaviour { | |
SystemFontRenderer fontRenderer; | |
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 UnityEngine; | |
using System; | |
using System.Collections; | |
using System.IO; | |
/// <summary> | |
/// Defalult WWW.LoadFromCacheOrDownload() can use only AssetBundle | |
/// this eneble chaching any file. | |
/// </summary> | |
public class WWWCache { |
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 UnityEngine; | |
using System.Collections; | |
// delegates | |
public enum UIPopupState { | |
SUBMIT, | |
CANCEL | |
} | |
public delegate void ClickDelegate(UIPopupState state); |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/** | |
DownloadManager | |
@author koki ibukuro | |
*/ | |
public class DownloadManager : MonoBehaviour , System.IDisposable { | |
// using classes |
OlderNewer