Skip to content

Instantly share code, notes, and snippets.

View anchan828's full-sized avatar

Keigo Ando anchan828

  • Unity Technologies
  • Japan
  • 14:28 (UTC +09:00)
  • X @kyusyukeigo
View GitHub Profile
<script type="text/javascript"src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script type="text/javascript">$(function(){$(".unitygames").each(function(i){var t=$(this);t.html('<iframe width="100%" height="100%" src="'+t.attr("src")+'" frameborder="0"></iframe>')})});</script>
<script type="text/javascript"src="http://code.jquery.com/jquery-1.7.1.min.js"></script><script type="text/javascript">$(function(){$(".unitygames").each(function(i){var t=$(this);t.html('<iframe width="100%" height="100%" src="'+t.attr("src")+'" frameborder="0"></iframe>')})});</script>
@anchan828
anchan828 / gist:1681986
Created January 26, 2012 09:43
GetConponent
using UnityEngine;
using System.Collections;
public class Test : MonoBehaviour
{
void Awake ()
{
gameObject.active = false;
}
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class RecoderManager : MonoBehaviour
{
public Texture2D playButton, pauseButton, stopButton, recodeBotton, recodingButton;
public GameObject play, pause, stop, recode, recoding, meta;
private const string RECODE_START = "RecodeStart", RECODE_STOP = "RecodeStop", PLAY = "Play", PAUSE = "Pause", STOP = "Stop";
private Ray r;
using UnityEngine;
using System.Collections;
public class Script : MonoBehaviour
{
public int w = 100;
private Texture2D tex;
void Update ()
{
IEnumerator Start ()
{
particleSystem.Play ();
yield return new WaitForSeconds(3);
particleSystem.Stop ();
yield return new WaitForSeconds(3);
particleSystem.Play ();
yield return new WaitForSeconds(3);
particleSystem.Pause ();
yield return new WaitForSeconds(3);
IEnumerator Start ()
{
particleSystem.Play ();
yield return new WaitForSeconds(3);
particleSystem.Stop ();
yield return new WaitForSeconds(3);
particleSystem.Play ();
//yield return new WaitForSeconds(3);
//particleSystem.Pause ();
//yield return new WaitForSeconds(3);
using UnityEngine;
using UnityEditor;
using System.Collections;
[InitializeOnLoad]
public class UpdateCheck : MonoBehaviour
{
static UpdateCheck ()
{
if (EditorApplication.timeSinceStartup < 10)
IEnumerator _CheckStart ()
{
WWW www = new WWW ("URL");
yield return www;
Debug.Log (www.text);
}
private static WWW www;
static UpdateCheck ()
{
www = new WWW ("URL");
EditorApplication.update += _Update;
}
private static void _Update ()
{