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 AsyncTest : MonoBehaviour | |
{ | |
// Start is called before the first frame update | |
void Start() | |
{ | |
// コルーチン実行 | |
StartCoroutine(AsyncCoroutineCaller(() => | |
{ | |
// async/await実行 | |
AsyncTaskCaller(); |
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
List<bool> container = new List<bool>(); | |
// containerに値セット | |
var item = container.FirstOrDefault(x => x == true ); |
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
// Editorフォルダ配下に配置 | |
using UnityEditor; | |
using UnityEngine; | |
namespace STYLY | |
{ | |
[CustomEditor(typeof(TargetClass))] | |
public class TargetClassInspector : Editor | |
{ | |
public override void OnInspectorGUI() |
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 MazeMaker : MonoBehaviour { | |
public delegate void MazeMakerEventHandler(object sender ); | |
public event MazeMakerEventHandler MakeComplete; | |
public int randomSeed = -1; | |
public int xMax; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MazeMakerGrow : MonoBehaviour { | |
public bool growOnStart = false; | |
public int xMax = 11; | |
public int yMax = 11; | |
public int zMax = 11; |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MazeMakerGrowInObj : MonoBehaviour { | |
public bool growOnStart = false; | |
public int xMax = 11; | |
public int yMax = 11; | |
public int zMax = 11; |
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
require 'open3' | |
#------------------------------------------------------------------------------- | |
LOG_FILE = 'inputlog.log' | |
#------------------------------------------------------------------------------- | |
# Androidでの入力のログファイルへの出力 | |
#------------------------------------------------------------------------------- | |
def recordToLogFile | |
Open3.popen3('adb shell') do |stdin,stdout,stderr,thread| |
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
コマンド | |
■Android Shell | |
●Android アプリ名からプロセスを探してKill(ただし、UNIXシェルから実行。WindowsからならMinGWとか使う) | |
adb shell ps|grep <プロセス名> |awk '{ print $2 }' | xargs adb shell kill | |
●圧縮ファイル解凍 | |
busybox unzip -x <圧縮ファイル名>.zip | |
■Linux |
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
# -*- coding: CP932 -*- | |
# コメントの削除 | |
import re | |
import codecs | |
import csv | |
import os | |
import string | |
DIR_NAME = r"D:\src" | |
MOD_DIR_NAME = r"D:\dest" |
NewerOlder