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.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEngine; | |
namespace Nekomimi.Daimao | |
{ | |
/// <summary> | |
/// Switch #define. |
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 class AssetBundleDisposable : IDisposable | |
{ | |
public AssetBundle AssetBundle { get; private set; } | |
private bool _disposed = false; | |
public AssetBundleDisposable(AssetBundle assetBundle) |
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; | |
namespace VRM.Extension | |
{ | |
public class VRMAutoDisposer : MonoBehaviour | |
{ | |
public VRMImporterContext Context; | |
private void OnDestroy() | |
{ |
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.Generic; | |
using System.IO; | |
using Cysharp.Threading.Tasks; | |
using UnityEngine; | |
using VRM; | |
public class HumanRanch : MonoBehaviour | |
{ | |
private void Start() |
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
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
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2021 NekomimiDaimao | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |