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
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. | |
*/ |
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
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. | |
*/ |
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
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 { |
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
#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"); |
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 System; | |
using System.Windows.Forms; | |
public class Sample1:Form | |
{ | |
private Label lb; | |
private TextBox tb; | |
public static void Main(){ | |
Application.Run (new Sample1 ()); |
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 System; | |
using System.Windows.Forms; | |
public class Sample1:Form | |
{ | |
private Label lb; | |
private TextBox tb; | |
public static void Main(){ | |
Application.Run (new Sample1 ()); |
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
void OnBecameInvisible() { | |
Destroy (this.gameObject); | |
} |
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
//動く | |
void OnBecameInvisible() { | |
Destroy (this.gameObject); | |
} | |
//動かない | |
// void OnBecomeInvisible() { | |
// Destroy(this.gameObject); | |
// } |
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 TimerGUIText : MonoBehaviour { | |
public float timer; | |
// Update is called once per frame | |
void Update () { | |
timer -= Time.deltaTime; |
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
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; |
OlderNewer