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
https://gist.github.com/nekomimi-daimao | |
These gists are licensed under CC0 unless a separate license is included in the gist. | |
http://creativecommons.org/publicdomain/zero/1.0/deed.ja |
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.Collections; | |
using System.IO; | |
using UnityEngine; | |
namespace NekomimiDaimao | |
{ | |
/// https://gist.github.com/nekomimi-daimao/a14301d7008d0a1c7e55977d6d9e2cc1 | |
public class MicRecorder : MonoBehaviour | |
{ |
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
const fs = require('fs'); | |
const moduleId = "json-server"; | |
const serveUrl = ["/", "/script.js", "/style.css", "/favicon.ico",]; | |
module.exports = (request, response, next) => { | |
if (serveUrl.includes(request.url)) { | |
const fileName = request.url == "/" ? "/index.html" : request.url; | |
const path = require.resolve(moduleId).split(moduleId)[0] + moduleId + "/public" + fileName; | |
fs.readFile(path, (err, data) => { |
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.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading; | |
using Cysharp.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class ChannelExample : MonoBehaviour |
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.Linq; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace Nekomimi.Daimao | |
{ | |
public static class DontDestroyOnLoadCollector | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
private static void Register() |
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 Cysharp.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace Nekomimi.Daimao.SceneEntry | |
{ | |
public abstract class EntryBehaviourBase : MonoBehaviour | |
{ | |
public Scene Scene => gameObject.scene; |
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.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
using UnityEngine; |
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
#if UNITY_EDITOR | |
using System; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEditor.Build.Reporting; | |
/// <summary> | |
/// /opt/unity/Editor/Unity -projectPath "" -batchmode -nographics -quit -executeMethod BuildExecutor.Build | |
/// <see cref="ParseArg"/> |
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.Threading; | |
using Cysharp.Threading.Tasks; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
namespace Nekomimi.Daimao | |
{ | |
/// <summary> | |
/// 最初の1文字を入力してから一定時間内に特定のキーを入力したかを判定する. |
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 UnityEngine; | |
public static class L | |
{ | |
private const string DefineConditional = "NEVER_DEFINED_SYMBOL"; | |
#region LogLevel | |
public enum LogLevel : byte |