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
𩸽 | |
👹 | |
abc𩸽123 |
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
void testApp::draw(){ | |
char file_path[] = "/tmp/capture"; | |
char cmd[256]; | |
snprintf(cmd, sizeof(cmd), "screencapture -x %s", file_path); | |
system(cmd); | |
myImage.loadImage(file_path); | |
myImage.draw(20,20, 640, 480); | |
} |
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 HitTest : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
} | |
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 Test : MonoBehaviour { | |
private Mesh mesh; | |
public Material aMaterial; | |
private Vector3[] newVertices; | |
private Vector3[] newNormals; | |
private Vector2[] newUV; | |
private int[] newTriangles; |
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; | |
[RequireComponent (typeof (GUITexture))] | |
public class Joystick : MonoBehaviour { | |
// A simple class for bounding how far the GUITexture will move | |
class Boundary | |
{ | |
public Vector2 min = Vector2.zero; |
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
void StopUpdate(Transform t) { | |
for(int i=0; i<t.childCount; i++){ | |
Transform child = t.GetChild (i); | |
StopUpdate(child); | |
foreach(MonoBehaviour mb in child.gameObject.GetComponents<MonoBehaviour>()) { | |
mb.enabled = false; | |
} | |
} | |
} | |
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.IO; | |
using System.Net; | |
using System.Text; | |
public class Test : MonoBehaviour { | |
private string txt = ""; | |
void OnGUI () { | |
if (GUI.Button(new Rect(10, 10, 200, 100), "テスト")) { |
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
// ここでデモが見れます http://www.robertpenner.com/easing/easing_demo.html | |
/// <summary> | |
/// The type of easing to use based on Robert Penner's open source easing equations (http://www.robertpenner.com/easing_terms_of_use.html). | |
/// </summary> | |
public enum EaseType{ | |
easeInQuad, | |
easeOutQuad, | |
easeInOutQuad, | |
easeInCubic, |
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
以下の for 文を回してチェック | |
for (obj in window) { | |
} | |
※ファームウェアのバージョンは「Kindle 5.3.0」 | |
document | |
window | |
test | |
Locale | |
NumberFormat |
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
public class Test : MonoBehaviour { | |
public Font f; | |
private bool change = false; | |
void OnGUI () | |
{ | |
GUIStyle style = new GUIStyle (); | |
style.font = f; | |
if (GUI.Button (new Rect (10, 5, 100, 50), "test")) { | |
change = true; |