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
#include <iostream> | |
class Random { | |
public: | |
// 乗数と増分にデフォルト値を設定する | |
Random(unsigned int x0, unsigned int mm, unsigned int aa = 1103515245, unsigned int cc = 12345) { | |
x = x0; // 開始値(シード) | |
m = mm; // 法 | |
a = aa; // 乗数 | |
c = cc; // 増分 |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BuildingTimer : MonoBehaviour { | |
public float duration = 1; // アニメーションにかける秒数 | |
private Material material; // マテリアルのコピーを保持する | |
private float startTime; // アニメーションを開始した時間 | |
private float minY; // クリッピング位置(Y座標)の最小値 | |
private float maxY; // クリッピング位置(Y座標)の最大値 |
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
Shader "3DPrint/ARCore/DiffuseWithLightEstimation" | |
{ | |
Properties | |
{ | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
_ConstructY ("Construct Y", Float) = 0.1 | |
_ConstructGap ("Construct Gap", Float) = 0.01 | |
_ConstructColor("Construct Color", Color) = (1,0,0,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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.iOS; | |
public class CatControl : MonoBehaviour { | |
public Transform hitTransform; | |
Vector3 GetLookVector () { | |
Vector3 lookVector = |
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 MainActivity extends AppCompatActivity { | |
TextView textView; // 追加 | |
int sheepCount = 0; // 追加 | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
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
String galleryPath = Environment.getExternalStorageDirectory().toString() + "/" + Environment.DIRECTORY_DCIM + "/Screenshots"; | |
File gf = new File(galleryPath); | |
File files[] = gf.listFiles(); | |
List<String> filePaths = new ArrayList<String>(); | |
if (files != null) { | |
Log.d("GalleryPath", "num=" + files.length); | |
for (File f: files) { | |
Log.d("GallerryPath", f.getPath()); | |
filePaths.add(f.getPath()); | |
} |
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
package jp.techinstitute.syllabus; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.view.Menu; | |
import android.view.MenuItem; | |
import android.widget.TextView; | |
public class CourseDetail extends Activity { |
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
/** | |
* | |
*/ | |
package jp.techinstitute.flyingdroid; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.drawable.Drawable; | |
/** |
NewerOlder