Skip to content

Instantly share code, notes, and snippets.

View kazuooooo's full-sized avatar
:octocat:
Taking a closer look, wombat!

kazuwombat kazuooooo

:octocat:
Taking a closer look, wombat!
View GitHub Profile
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.WindowManager;
/**
* Created by matsumotokazuya on 2014/11/16.
*/
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.WindowManager;
/**
* Created by matsumotokazuya on 2014/11/16.
*/
package com.example.matsumotokazuya.servicealarmdemo;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
#pragma strict
//make GUI
function OnGUI(){
//make button
if(GUI.Button(Rect(Screen.width/2-100,200,200,30),"GAME START"))
{
//change sscene
Application.LoadLevel("main");
using System;
using System.Windows.Forms;
public class Sample1:Form
{
private Label lb;
private TextBox tb;
public static void Main(){
Application.Run (new Sample1 ());
using System;
using System.Windows.Forms;
public class Sample1:Form
{
private Label lb;
private TextBox tb;
public static void Main(){
Application.Run (new Sample1 ());
void OnBecameInvisible() {
Destroy (this.gameObject);
}
//動く
void OnBecameInvisible() {
Destroy (this.gameObject);
}
//動かない
// void OnBecomeInvisible() {
// Destroy(this.gameObject);
// }
using UnityEngine;
using System.Collections;
public class TimerGUIText : MonoBehaviour {
public float timer;
// Update is called once per frame
void Update () {
timer -= Time.deltaTime;
public class Array : MonoBehaviour {
// Use this for initialization
void Start () {
int[] data = { 98, 76, 63, 38, 8 };
int total;
foreach(int n in data){
total += n;
}
int ave = total/5;